summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-21 06:40:50 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-04-25 01:21:15 +0300
commit8d5e202802a5de1f81c445cacbb9359fcd4e6f23 (patch)
tree5ed8397f9196efc0ef5508d85a7dbb14dade0d87 /drivers
parentacfcb728bd57f3f04ae82050c9c5903cee077b08 (diff)
downloadlinux-8d5e202802a5de1f81c445cacbb9359fcd4e6f23.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/isci/isci.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/isci/isci.h b/drivers/scsi/isci/isci.h
index 680e30947671..4e6b1decbca7 100644
--- a/drivers/scsi/isci/isci.h
+++ b/drivers/scsi/isci/isci.h
@@ -500,19 +500,19 @@ struct sci_timer {
static inline
void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t))
{
- tmr->cancel = 0;
+ tmr->cancel = false;
timer_setup(&tmr->timer, fn, 0);
}
static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec)
{
- tmr->cancel = 0;
+ tmr->cancel = false;
mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec));
}
static inline void sci_del_timer(struct sci_timer *tmr)
{
- tmr->cancel = 1;
+ tmr->cancel = true;
del_timer(&tmr->timer);
}