diff options
| author | Jie Liu <[email protected]> | 2014-07-24 18:40:26 +1000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2014-07-24 18:40:26 +1000 |
| commit | 296dfd7fdba3a8b702d9cb47afc9061f52e18656 (patch) | |
| tree | 3e06e83847af94a7ce15d883439989af292f31a8 | |
| parent | c7cb51dcb0a38624d42eeabb38502fa54a4d774b (diff) | |
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]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
| -rw-r--r-- | fs/xfs/xfs_itable.c | 4 |
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( *ubcountp = 0; return 0; } - if (!ubcountp || *ubcountp <= 0) { - return -EINVAL; - } + ubcount = *ubcountp; /* statstruct's */ ubleft = ubcount * statstruct_size; /* bytes */ *ubcountp = ubelem = 0; |