]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
8139too: use true,false for bool variables
authorJason Yan <yanaijie@huawei.com>
Sat, 19 Sep 2020 07:46:09 +0000 (15:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 21:23:14 +0000 (14:23 -0700)
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>
drivers/net/ethernet/realtek/8139too.c

index 227139d4222732d18fed4614bfe4e62b9cca7032..1e5a453dea1460ec6689d624ee9190d637de99e1 100644 (file)
@@ -978,7 +978,7 @@ static int rtl8139_init_one(struct pci_dev *pdev,
            pdev->subsystem_vendor == PCI_VENDOR_ID_ATHEROS &&
            pdev->subsystem_device == PCI_DEVICE_ID_REALTEK_8139) {
                pr_info("OQO Model 2 detected. Forcing PIO\n");
-               use_io = 1;
+               use_io = true;
        }
 
        dev = rtl8139_init_board (pdev);