xfs: return is not a function
return is not a function. "return(EIO);" is silly; "return (EIO);" moreso. return is not a function. Nuke the pointless parens. [dchinner: catch a couple of extra cases in xfs_attr_list.c, xfs_acl.c and xfs_linux.h.] Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:

committed by
Dave Chinner

parent
a497c3ba1d
commit
d99831ff39
@@ -190,7 +190,7 @@ xfs_trans_reserve(
|
||||
-((int64_t)blocks), rsvd);
|
||||
if (error != 0) {
|
||||
current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
|
||||
return (XFS_ERROR(ENOSPC));
|
||||
return XFS_ERROR(ENOSPC);
|
||||
}
|
||||
tp->t_blk_res += blocks;
|
||||
}
|
||||
@@ -1024,7 +1024,7 @@ xfs_trans_roll(
|
||||
*/
|
||||
error = xfs_trans_commit(trans, 0);
|
||||
if (error)
|
||||
return (error);
|
||||
return error;
|
||||
|
||||
trans = *tpp;
|
||||
|
||||
|
Reference in New Issue
Block a user