xfs: remove redundant user buffer count checks at xfs_bulkstat
PATCH v3 5/10 xfs: remove redundant user buffer count checks at xfs_bulkstat
From: Jie Liu <[email protected]>
Remove the redundant user buffer and count checks as it has already been validated at xfs_ioc_bulkstat().
Signed-off-by Jie Liu <[email protected]>
--- fs/xfs/xfs_itable.c | 3 --- 1 file changed, 3 deletions(-)
fs/xfs/xfs_itable.c +0 -3
@@ -230,9 +230,6 @@ xfs_bulkstat( *ubcountp =0 ;return 0 ; } -if (!ubcountp || *ubcountp <=0 ) { -return EINVAL ; - } ubcount = *ubcountp;/* statstruct's */ ubleft = ubcount * statstruct_size;/* bytes */ *ubcountp = ubelem =0 ;
Signature · 6 lines
1.8.3.2 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs