xfs: fix simple_return.cocci warning in xfs_file_readdir
authorkbuild test robot <fengguang.wu@intel.com>
Sun, 30 Nov 2014 21:25:28 +0000 (08:25 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 30 Nov 2014 21:25:28 +0000 (08:25 +1100)
commit8300475ebf03a54ec3c56b6b808ccbd9e1bc320d
treecf3cf8207847e0edfd3cec7771cbc460c6c6318e
parentb72091f2fb28fb9e2746010b54d6cc3c27924e6c
xfs: fix simple_return.cocci warning in xfs_file_readdir

fs/xfs/xfs_file.c:919:1-6: WARNING: end returns can be simpified and declaration on line 902 can be dropped

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c