Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b72091f2 authored by kbuild test robot's avatar kbuild test robot Committed by Dave Chinner
Browse files

libxfs: fix simple_return.cocci warnings



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: default avatarFengguang Wu <fengguang.wu@intel.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent d2a5e3c6
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -1137,11 +1137,7 @@ xfs_dialloc_ag_update_inobt(
	XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) &&
	XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) &&
				  (rec.ir_freecount == frec->ir_freecount));
				  (rec.ir_freecount == frec->ir_freecount));


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

	return 0;
}
}


/*
/*