[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20140425221322.4ee6e11dac3be4d42f27fc88@skynet.be>
Date: Fri, 25 Apr 2014 22:13:22 +0200
From: Fabian Frederick <fabf@...net.be>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: "James E.J. Bottomley" <JBottomley@...allels.com>,
akpm <akpm@...ux-foundation.org>
Subject: [PATCH 1/1] drivers/scsi/sd.c: remove positive test on unsigned
value
val is unsigned.
Cc: "James E.J. Bottomley" <JBottomley@...allels.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@...net.be>
---
drivers/scsi/sd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index efcbcd1..b54d4f8 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -296,7 +296,7 @@ protection_type_store(struct device *dev, struct device_attribute *attr,
if (err)
return err;
- if (val >= 0 && val <= SD_DIF_TYPE3_PROTECTION)
+ if (val <= SD_DIF_TYPE3_PROTECTION)
sdkp->protection_type = val;
return count;
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists