Skip to contentSkip to conversation

mtip32xx: Remove dead code

PATCH Applied Asai Thambi S P 1 participant 1 message Sep 5, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 6/6 mtip32xx: Remove dead code

Removed the dead code in mtip_hw_read_registers() and mtip_hw_read_flags().

Reported-by Coverity
---
 drivers/block/mtip32xx/mtip32xx.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +0 -6
index 362ce4a..e6519e2 100644
@@ -2592,9 +2592,6 @@ static ssize_t mtip_hw_read_registers(struct file *f, char __user *ubuf,
 	if (!len || size)
 		return 0;
 
-	if (size < 0)
-		return -EINVAL;
-
 	size += sprintf(&buf[size], "H/ S ACTive      : [ 0x");
 
 	for (n = dd->slot_groups-1; n >= 0; n--)
@@ -2664,9 +2661,6 @@ static ssize_t mtip_hw_read_flags(struct file *f, char __user *ubuf,
 	if (!len || size)
 		return 0;
 
-	if (size < 0)
-		return -EINVAL;
-
 	size += sprintf(&buf[size], "Flag-port : [ %08lX ]\n",
 							dd->port->flags);
 	size += sprintf(&buf[size], "Flag-dd   : [ %08lX ]\n",
Signature · 1 line
1.7.1