Skip to contentSkip to conversation

remove unused variable from drivers/scsi/megaraid.c

PATCH In review Tim Cooijmans 2 participants 2 messages Feb 21, 2006 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused variable from drivers/scsi/megaraid.c

From: Tim Cooijmans <[email protected]>

Fix "unused variable: `flags'" warning in drivers/scsi/megaraid.c:4473

---
--- linux-2.6.16-rc4-orig/drivers/scsi/megaraid.c 2006-02-21
20:18:42.000000000 +0100
+++ linux-2.6.16-rc4/drivers/scsi/megaraid.c 2006-02-21 21:25:38.000000000
+0100
@@ -4470,7 +4470,6 @@ mega_internal_command(adapter_t *adapter
{
Scsi_Cmnd *scmd;
struct scsi_device *sdev;
- unsigned long flags = 0;
scb_t *scb;
int rval;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 11 lines · Tim Cooijmans

From: Tim Cooijmans <[email protected]>

Fix "unused variable: `flags'" warning in drivers/scsi/megaraid.c:4473

---
--- linux-2.6.16-rc4-orig/drivers/scsi/megaraid.c 2006-02-21
20:18:42.000000000 +0100
+++ linux-2.6.16-rc4/drivers/scsi/megaraid.c 2006-02-21 21:25:38.000000000
+0100

Review mega_internal_command(adapter_t *adapter · line 4475

Quoted 7 lines
(quoted diff) +0 -1
@@ -4470,7 +4470,6 @@ mega_internal_command(adapter_t *adapter
 {
        Scsi_Cmnd       *scmd;
        struct  scsi_device *sdev;
-       unsigned long   flags = 0;
        scb_t   *scb;
        int     rval;
 

Just for your information; I recently posted a big patch that fixes this warning and a bunch of other stuff in megaraid. That patch is currently pending.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors