[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value

This change “[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value” (commit 0cb8cd7) in Linux kernel is authored by Geert Uytterhoeven <geert [at] linux-m68k.org> on Mon Jun 13 20:39:20 2011 +0200.

Description of "[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value"

The change “[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value” introduces changes as follows.

[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value

This fixes:

drivers/scsi/sun3_NCR5380.c:1448:5: warning: "NCR_TIMEOUT" is not defined

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Linux kernel releases containing commit 0cb8cd7

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "[SCSI] sun3: Check for NCR_TIMEOUT being defined instead of having a value"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/scsi/sun3_NCR5380.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/scsi/sun3_NCR5380.c b/drivers/scsi/sun3_NCR5380.c
index 2ba1cb781091..f3cffdf5a011 100644
--- a/drivers/scsi/sun3_NCR5380.c
+++ b/drivers/scsi/sun3_NCR5380.c
@@ -1445,7 +1445,7 @@ static int NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd,
     local_irq_restore(flags);
 
     /* Wait for arbitration logic to complete */
-#if NCR_TIMEOUT
+#ifdef NCR_TIMEOUT
     {
       unsigned long timeout = jiffies + 2*NCR_TIMEOUT;
 

The commit for this change in Linux stable tree is 0cb8cd7 (patch).

Last modified: 2020/02/10