]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix qla1280 compiles
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Sep 2003 06:10:59 +0000 (01:10 -0500)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Fri, 26 Sep 2003 06:10:59 +0000 (01:10 -0500)
Duh!  The scsi_cmnd.flags removal broke qla1280.

It checked for the flags beeing 0, which it always was for a long
time.  It looks a bit fishy thus, so if someone wants to audit
srb.flags audit please do so.

drivers/scsi/qla1280.c

index a9907dc116e175c8c6c20ffd61b1e00732df1799..d70f3e62c6d6dca643dfab515340ecc148dee6a9 100644 (file)
@@ -1220,9 +1220,7 @@ qla1280_queuecommand(Scsi_Cmnd * cmd, void (*fn) (Scsi_Cmnd *))
        sp = (struct srb *)CMD_SP(cmd);
        sp->cmd = cmd;
        cmd->scsi_done = fn;
-       if (cmd->flags == 0) {  /* new command */
-               sp->flags = 0;
-       }
+       sp->flags = 0;
 
        qla1280_print_scsi_cmd(5, cmd);