Skip to content

Commit 65dc8e1

Browse files
JasonYanHwdavem330
authored andcommitted
8139too: use true,false for bool variables
This addresses the following coccinelle warning: drivers/net/ethernet/realtek/8139too.c:981:2-8: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f3a3f34 commit 65dc8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/8139too.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static int rtl8139_init_one(struct pci_dev *pdev,
978978
pdev->subsystem_vendor == PCI_VENDOR_ID_ATHEROS &&
979979
pdev->subsystem_device == PCI_DEVICE_ID_REALTEK_8139) {
980980
pr_info("OQO Model 2 detected. Forcing PIO\n");
981-
use_io = 1;
981+
use_io = true;
982982
}
983983

984984
dev = rtl8139_init_board (pdev);

0 commit comments

Comments
 (0)