mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drivers/scsi/ncr53c8xx.c: fix warning
drivers/scsi/ncr53c8xx.c: In function 'process_waiting_list':
drivers/scsi/ncr53c8xx.c:8225: warning: suggest parentheses around assignment used as truth value
recently added by
commit 172c122df5
Author: Harvey Harrison <[email protected]>
Date: Mon Apr 28 16:50:03 2008 -0700
scsi: fix integer as NULL pointer warnings
Cc: James Bottomley <[email protected]>
Cc: Harvey Harrison <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5098021e1e
commit
726792b26b
1 changed files with 1 additions and 1 deletions
|
|
@ -8222,7 +8222,7 @@ static void process_waiting_list(struct ncb *np, int sts)
|
|||
#ifdef DEBUG_WAITING_LIST
|
||||
if (waiting_list) printk("%s: waiting_list=%lx processing sts=%d\n", ncr_name(np), (u_long) waiting_list, sts);
|
||||
#endif
|
||||
while (wcmd = waiting_list) {
|
||||
while ((wcmd = waiting_list) != NULL) {
|
||||
waiting_list = (struct scsi_cmnd *) wcmd->next_wcmd;
|
||||
wcmd->next_wcmd = NULL;
|
||||
if (sts == DID_OK) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue