* [PATCH 1/1] [SCSI] scsi_debug: add missing csum var initialization
@ 2013-09-13 17:21 Antonio Alecrim Jr
0 siblings, 0 replies; only message in thread
From: Antonio Alecrim Jr @ 2013-09-13 17:21 UTC (permalink / raw)
To: James E.J. Bottomley, linux-scsi, linux-kernel; +Cc: Antonio Alecrim Jr
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@gmail.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-13 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-13 17:21 [PATCH 1/1] [SCSI] scsi_debug: add missing csum var initialization Antonio Alecrim Jr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®