Fix incorrect WARN_ON()
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 12:33:45 +0000 (12:33 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 12:33:45 +0000 (12:33 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1238 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_priv.h

index 0662e4f..457db79 100644 (file)
@@ -375,7 +375,7 @@ static inline int scst_exec_req(struct scsi_device *sdev,
        return scsi_execute_async(sdev, cmd, cmd_len, data_direction, (void *)sgl,
                    bufflen, nents, timeout, retries, privdata, done, gfp);
 #elif !defined(SCSI_EXEC_REQ_FIFO_DEFINED)
-       WARN_ON();
+       WARN_ON(1);
        return -1;
 #else
        return scsi_execute_async_fifo(sdev, cmd, cmd_len, data_direction,