Skip to content

Commit

Permalink
8139too: use true,false for bool variables
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JasonYanHw authored and davem330 committed Sep 19, 2020
1 parent f3a3f34 commit 65dc8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/8139too.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65dc8e1

Please sign in to comment.