Skip to contentSkip to conversation

xfs: remove redundant user buffer count checks at xfs_bulkstat

PATCH In review Jeff Liu 1 participant 1 message Jun 3, 2014 XFS filesystem

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

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().

---
 fs/xfs/xfs_itable.c | 3 ---
 1 file changed, 3 deletions(-)
fs/xfs/xfs_itable.c +0 -3
index 693e787..d210e24 100644
@@ -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