Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: isci: Use true, false for bool variables

Fix the following coccicheck warning:

drivers/scsi/isci/isci.h:515:1-12: WARNING: Assignment of 0/1 to bool
variable
drivers/scsi/isci/isci.h:503:1-12: WARNING: Assignment of 0/1 to bool
variable
drivers/scsi/isci/isci.h:509:1-12: WARNING: Assignment of 0/1 to bool
variable

Link: https://lore.kernel.org/r/20200421034050.28193-1-yanaijie@huawei.com
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Jason Yan and committed by
Martin K. Petersen
8d5e2028 acfcb728

+3 -3
+3 -3
drivers/scsi/isci/isci.h
··· 500 500 static inline 501 501 void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) 502 502 { 503 - tmr->cancel = 0; 503 + tmr->cancel = false; 504 504 timer_setup(&tmr->timer, fn, 0); 505 505 } 506 506 507 507 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) 508 508 { 509 - tmr->cancel = 0; 509 + tmr->cancel = false; 510 510 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); 511 511 } 512 512 513 513 static inline void sci_del_timer(struct sci_timer *tmr) 514 514 { 515 - tmr->cancel = 1; 515 + tmr->cancel = true; 516 516 del_timer(&tmr->timer); 517 517 } 518 518