Commit db339a00 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley

[PATCH] sym_requeue_awaiting_cmds() warning fix

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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 683bc6cf
...@@ -667,14 +667,15 @@ void sym_log_bus_error(struct sym_hcb *np) ...@@ -667,14 +667,15 @@ void sym_log_bus_error(struct sym_hcb *np)
*/ */
static void sym_requeue_awaiting_cmds(struct sym_hcb *np) static void sym_requeue_awaiting_cmds(struct sym_hcb *np)
{ {
struct scsi_cmnd *cmd; struct sym_ucmd *ucp;
struct sym_ucmd *ucp = SYM_UCMD_PTR(cmd);
SYM_QUEHEAD tmp_cmdq; SYM_QUEHEAD tmp_cmdq;
int sts; int sts;
sym_que_move(&np->s.wait_cmdq, &tmp_cmdq); sym_que_move(&np->s.wait_cmdq, &tmp_cmdq);
while ((ucp = (struct sym_ucmd *) sym_remque_head(&tmp_cmdq)) != 0) { 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); sym_insque_tail(&ucp->link_cmdq, &np->s.busy_cmdq);
cmd = SYM_SCMD_PTR(ucp); cmd = SYM_SCMD_PTR(ucp);
sts = sym_queue_command(np, cmd); sts = sym_queue_command(np, cmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment