* [PATCH 1/1] drivers/message/i2o/i2o_block.c: remove unnecessary test on unsigned value
@ 2014-06-11 18:42 Fabian Frederick
0 siblings, 0 replies; only message in thread
From: Fabian Frederick @ 2014-06-11 18:42 UTC (permalink / raw)
To: aacraid; +Cc: Fabian Frederick, linux-scsi
unsigned value is never < 0
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/message/i2o/i2o_block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c
index 6fc3866..2b684ec 100644
--- a/drivers/message/i2o/i2o_block.c
+++ b/drivers/message/i2o/i2o_block.c
@@ -671,7 +671,7 @@ static int i2o_block_ioctl(struct block_device *bdev, fmode_t mode,
break;
case BLKI2OSRSTRAT:
ret = -EINVAL;
- if (arg < 0 || arg > CACHE_SMARTFETCH)
+ if (arg > CACHE_SMARTFETCH)
break;
dev->rcache = arg;
ret = 0;
--
1.8.4.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-11 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 18:42 [PATCH 1/1] drivers/message/i2o/i2o_block.c: remove unnecessary test on unsigned value Fabian Frederick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).