aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;