Skip to content

Commit

Permalink
libxfs: fix simple_return.cocci warnings
Browse files Browse the repository at this point in the history
fs/xfs/libxfs/xfs_ialloc.c:1141:1-6: WARNING: end returns can be simpified

 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>
  • Loading branch information
kbuild test robot authored and Dave Chinner committed Nov 30, 2014
1 parent d2a5e3c commit b72091f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/xfs/libxfs/xfs_ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,11 +1137,7 @@ xfs_dialloc_ag_update_inobt(
XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) &&
(rec.ir_freecount == frec->ir_freecount));

error = xfs_inobt_update(cur, &rec);
if (error)
return error;

return 0;
return xfs_inobt_update(cur, &rec);
}

/*
Expand Down

0 comments on commit b72091f

Please sign in to comment.