diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-07-17 17:27:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-18 13:40:58 -0700 |
commit | bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a (patch) | |
tree | d8450f68e29f768082ee65284ad4ad06ab476814 /drivers/net/ethernet/cavium/liquidio/lio_main.c | |
parent | 6060d9d24e6d7c7959d0db8cd9f511cf43c409d9 (diff) | |
download | linux-stable-bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a.tar.gz linux-stable-bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a.tar.bz2 linux-stable-bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a.zip |
liquidio: Using NULL instead of plain integer
Fixes the following sparse warnings:
drivers/net/ethernet/cavium/liquidio/lio_main.c:3068:23: warning:
Using plain integer as NULL pointer
drivers/net/ethernet/cavium/liquidio/lio_main.c:2909:23: warning:
Using plain integer as NULL pointer
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c:385:27: warning:
Using plain integer as NULL pointer
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/lio_main.c')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/lio_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 4edb1584b32f..4980eca87667 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -2906,7 +2906,7 @@ static int liquidio_set_vf_vlan(struct net_device *netdev, int vfidx, vfidx + 1; /* vfidx is 0 based, but vf_num (param2) is 1 based */ nctrl.ncmd.s.more = 0; nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; - nctrl.cb_fn = 0; + nctrl.cb_fn = NULL; nctrl.wait_time = LIO_CMD_WAIT_TM; octnet_send_nic_ctrl_pkt(oct, &nctrl); @@ -3065,7 +3065,7 @@ static int liquidio_set_vf_link_state(struct net_device *netdev, int vfidx, nctrl.ncmd.s.param2 = linkstate; nctrl.ncmd.s.more = 0; nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; - nctrl.cb_fn = 0; + nctrl.cb_fn = NULL; nctrl.wait_time = LIO_CMD_WAIT_TM; octnet_send_nic_ctrl_pkt(oct, &nctrl); |