xfs: Remove dead code from inode recover function
authorNikolay Borisov <nborisov@suse.com>
Wed, 7 Mar 2018 01:03:30 +0000 (17:03 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 Mar 2018 03:27:55 +0000 (20:27 -0700)
commitbcab2ebfa1ad9fb4b9a58df60a365b6efb33f1cd
treec734b64ab8e45a6663b4d7228eb5e8c28a22356c
parente157ebdcb3acd16221f1e5f84c6e371e15d37b6e
xfs: Remove dead code from inode recover function

The memcpy is guarded by a check which is performed a right before we
call xfs_log_dinode_to_disk. At this point we are sure this check will
always be false otherwise we would have errored out. So let's remove
this dead weight.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log_recover.c