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

Configure Feed

Select the types of activity you want to include in your feed.

usb: pci-quirks: use true,false for bool variables

Fix the following coccicheck warning:

drivers/usb/host/pci-quirks.c:532:1-27: WARNING: Assignment of 0/1 to
bool variable
drivers/usb/host/pci-quirks.c:208:1-20: WARNING: Assignment of 0/1 to
bool variable
drivers/usb/host/pci-quirks.c:232:2-21: WARNING: Assignment of 0/1 to
bool variable
drivers/usb/host/pci-quirks.c:235:2-21: WARNING: Assignment of 0/1 to
bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200420042622.18564-1-yanaijie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jason Yan and committed by
Greg Kroah-Hartman
cfee5461 a6cd27e9

+4 -4
+4 -4
drivers/usb/host/pci-quirks.c
··· 205 205 { 206 206 unsigned long flags; 207 207 struct amd_chipset_info info; 208 - info.need_pll_quirk = 0; 208 + info.need_pll_quirk = false; 209 209 210 210 spin_lock_irqsave(&amd_lock, flags); 211 211 ··· 229 229 case AMD_CHIPSET_SB800: 230 230 case AMD_CHIPSET_HUDSON2: 231 231 case AMD_CHIPSET_BOLTON: 232 - info.need_pll_quirk = 1; 232 + info.need_pll_quirk = true; 233 233 break; 234 234 default: 235 - info.need_pll_quirk = 0; 235 + info.need_pll_quirk = false; 236 236 break; 237 237 } 238 238 ··· 529 529 amd_chipset.nb_type = 0; 530 530 memset(&amd_chipset.sb_type, 0, sizeof(amd_chipset.sb_type)); 531 531 amd_chipset.isoc_reqs = 0; 532 - amd_chipset.need_pll_quirk = 0; 532 + amd_chipset.need_pll_quirk = false; 533 533 534 534 spin_unlock_irqrestore(&amd_lock, flags); 535 535