]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sym_requeue_awaiting_cmds() warning fix
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Aug 2004 06:59:18 +0000 (02:59 -0400)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 26 Aug 2004 06:59:18 +0000 (02:59 -0400)
drivers/scsi/sym53c8xx_2/sym_glue.c: In function `sym_requeue_awaiting_cmds':
drivers/scsi/sym53c8xx_2/sym_glue.c:671: warning: 'cmd' is used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sym53c8xx_2/sym_glue.c

index 4293f0153ad308641c63c74c85b32e1455299ee7..0d9d1b42b184362ab84a0f3a0c67166ce7719f96 100644 (file)
@@ -667,14 +667,15 @@ void sym_log_bus_error(struct sym_hcb *np)
  */
 static void sym_requeue_awaiting_cmds(struct sym_hcb *np)
 {
-       struct scsi_cmnd *cmd;
-       struct sym_ucmd *ucp = SYM_UCMD_PTR(cmd);
+       struct sym_ucmd *ucp;
        SYM_QUEHEAD tmp_cmdq;
        int sts;
 
        sym_que_move(&np->s.wait_cmdq, &tmp_cmdq);
 
        while ((ucp = (struct sym_ucmd *) sym_remque_head(&tmp_cmdq)) != 0) {
+               struct scsi_cmnd *cmd;
+
                sym_insque_tail(&ucp->link_cmdq, &np->s.busy_cmdq);
                cmd = SYM_SCMD_PTR(ucp);
                sts = sym_queue_command(np, cmd);