aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2014-07-24 04:40:26 -0400
committerDave Chinner <david@fromorbit.com>2014-07-24 04:40:26 -0400
commit296dfd7fdba3a8b702d9cb47afc9061f52e18656 (patch)
tree3e06e83847af94a7ce15d883439989af292f31a8 /fs/xfs
parentc7cb51dcb0a38624d42eeabb38502fa54a4d774b (diff)
xfs: remove redundant user buffer count checks at xfs_bulkstat
From: Jie Liu <jeff.liu@oracle.com> Remove the redundant user buffer and count checks as it has already been validated at xfs_ioc_bulkstat(). Signed-off-by: Jie Liu <jeff.liu@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_itable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index ed042fff9337..940eeebaca03 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -230,9 +230,7 @@ xfs_bulkstat(
230 *ubcountp = 0; 230 *ubcountp = 0;
231 return 0; 231 return 0;
232 } 232 }
233 if (!ubcountp || *ubcountp <= 0) { 233
234 return -EINVAL;
235 }
236 ubcount = *ubcountp; /* statstruct's */ 234 ubcount = *ubcountp; /* statstruct's */
237 ubleft = ubcount * statstruct_size; /* bytes */ 235 ubleft = ubcount * statstruct_size; /* bytes */
238 *ubcountp = ubelem = 0; 236 *ubcountp = ubelem = 0;