public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 9/9] drivers/scsi/qla2xxx/qla_os.c: suppress uninitialized-var warning
@ 2008-06-09 23:36 akpm
  2008-07-18  0:02 ` Andrew Vasquez
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2008-06-09 23:36 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, andrew.vasquez

From: Andrew Morton <akpm@linux-foundation.org>

drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_post_work':
drivers/scsi/qla2xxx/qla_os.c:2158: warning: 'flags' may be used uninitialized in this function

Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/qla2xxx/qla_os.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/qla2xxx/qla_os.c~drivers-scsi-qla2xxx-qla_osc-suppress-uninitialized-var-warning drivers/scsi/qla2xxx/qla_os.c
--- a/drivers/scsi/qla2xxx/qla_os.c~drivers-scsi-qla2xxx-qla_osc-suppress-uninitialized-var-warning
+++ a/drivers/scsi/qla2xxx/qla_os.c
@@ -2156,7 +2156,7 @@ qla2x00_alloc_work(struct scsi_qla_host 
 static int
 qla2x00_post_work(struct scsi_qla_host *ha, struct qla_work_evt *e, int locked)
 {
-	unsigned long flags;
+	unsigned long uninitialized_var(flags);
 	scsi_qla_host_t *pha = to_qla_parent(ha);
 
 	if (!locked)
_

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [patch 9/9] drivers/scsi/qla2xxx/qla_os.c: suppress uninitialized-var warning
@ 2008-05-14 23:23 akpm
  0 siblings, 0 replies; 3+ messages in thread
From: akpm @ 2008-05-14 23:23 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, andrew.vasquez

From: Andrew Morton <akpm@linux-foundation.org>

drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_post_work':
drivers/scsi/qla2xxx/qla_os.c:2158: warning: 'flags' may be used uninitialized in this function

Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/qla2xxx/qla_os.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/qla2xxx/qla_os.c~drivers-scsi-qla2xxx-qla_osc-suppress-uninitialized-var-warning drivers/scsi/qla2xxx/qla_os.c
--- a/drivers/scsi/qla2xxx/qla_os.c~drivers-scsi-qla2xxx-qla_osc-suppress-uninitialized-var-warning
+++ a/drivers/scsi/qla2xxx/qla_os.c
@@ -2155,7 +2155,7 @@ qla2x00_alloc_work(struct scsi_qla_host 
 static int
 qla2x00_post_work(struct scsi_qla_host *ha, struct qla_work_evt *e, int locked)
 {
-	unsigned long flags;
+	unsigned long uninitialized_var(flags);
 
 	if (!locked)
 		spin_lock_irqsave(&ha->hardware_lock, flags);
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-18  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 23:36 [patch 9/9] drivers/scsi/qla2xxx/qla_os.c: suppress uninitialized-var warning akpm
2008-07-18  0:02 ` Andrew Vasquez
  -- strict thread matches above, loose matches on Subject: below --
2008-05-14 23:23 akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox