diff options
| author | Asai Thambi S P <asamymuthupa@micron.com> | 2012-09-05 12:34:16 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2012-09-12 16:20:22 -0400 |
| commit | ac64e6572d3906c3874175cf5345a37dc7f983f5 (patch) | |
| tree | 3264a4499214b70fddfc6b1587ff783544087ffe | |
| parent | 45422e7431f3afa049d07a99a35de8f8ceea6b3c (diff) | |
mtip32xx: Remove dead code
Removed the dead code in mtip_hw_read_registers() and mtip_hw_read_flags().
Reported-by: Coverity
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 362ce4a68582..e6519e2c9934 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
| @@ -2592,9 +2592,6 @@ static ssize_t mtip_hw_read_registers(struct file *f, char __user *ubuf, | |||
| 2592 | if (!len || size) | 2592 | if (!len || size) |
| 2593 | return 0; | 2593 | return 0; |
| 2594 | 2594 | ||
| 2595 | if (size < 0) | ||
| 2596 | return -EINVAL; | ||
| 2597 | |||
| 2598 | size += sprintf(&buf[size], "H/ S ACTive : [ 0x"); | 2595 | size += sprintf(&buf[size], "H/ S ACTive : [ 0x"); |
| 2599 | 2596 | ||
| 2600 | for (n = dd->slot_groups-1; n >= 0; n--) | 2597 | 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, | |||
| 2664 | if (!len || size) | 2661 | if (!len || size) |
| 2665 | return 0; | 2662 | return 0; |
| 2666 | 2663 | ||
| 2667 | if (size < 0) | ||
| 2668 | return -EINVAL; | ||
| 2669 | |||
| 2670 | size += sprintf(&buf[size], "Flag-port : [ %08lX ]\n", | 2664 | size += sprintf(&buf[size], "Flag-port : [ %08lX ]\n", |
| 2671 | dd->port->flags); | 2665 | dd->port->flags); |
| 2672 | size += sprintf(&buf[size], "Flag-dd : [ %08lX ]\n", | 2666 | size += sprintf(&buf[size], "Flag-dd : [ %08lX ]\n", |
