Skip to content

Commit 7d99429

Browse files
Fengguang Wudavem330
authored andcommitted
enic: fix boolreturn.cocci warnings
drivers/net/ethernet/cisco/enic/vnic_dev.c:1294:9-10: WARNING: return of 0/1 in function 'vnic_dev_capable_udp_rss' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 48398b6 ("enic: set UDP rss flag") CC: Govindarajulu Varadarajan <gvaradar@cisco.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b1312b8 commit 7d99429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/cisco/enic/vnic_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ bool vnic_dev_capable_udp_rss(struct vnic_dev *vdev)
12911291

12921292
err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait);
12931293
if (err || !a0)
1294-
return 0;
1294+
return false;
12951295

12961296
rss_hash_type = (a1 >> NIC_CFG_RSS_HASH_TYPE_SHIFT) &
12971297
NIC_CFG_RSS_HASH_TYPE_MASK_FIELD;

0 commit comments

Comments
 (0)