[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1379092877-5173-1-git-send-email-antonio.alecrim@gmail.com>
Date: Fri, 13 Sep 2013 14:21:17 -0300
From: Antonio Alecrim Jr <antonio.alecrim@...il.com>
To: "James E.J. Bottomley" <JBottomley@...allels.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Antonio Alecrim Jr <antonio.alecrim@...il.com>
Subject: [PATCH 1/1] [SCSI] scsi_debug: add missing csum var initialization
Removes the warning:
include/uapi/linux/swab.h:106:23: warning: ‘csum’ may be used
uninitialized in this function
Signed-off-by: Antonio Alecrim Jr <antonio.alecrim@...il.com>
---
drivers/scsi/scsi_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 01c0ffa..f149747 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -1733,7 +1733,7 @@ static int do_device_access(struct scsi_cmnd *scmd,
static u16 dif_compute_csum(const void *buf, int len)
{
- u16 csum;
+ u16 csum = 0;
switch (scsi_debug_guard) {
case 1:
--
1.8.3.1
--
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