diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-02-16 17:53:10 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-18 16:40:08 -0800 |
commit | bf9d787ba7ea87c5c676a73a0ba191edd5a0341a (patch) | |
tree | a3681a3c553b7e7c14f9485ed07ef4b83341c5ef /drivers/net/ethernet/cavium/liquidio/lio_main.c | |
parent | eb160971af7a2cd807a76adea44e924ebfa05708 (diff) | |
download | linux-bf9d787ba7ea87c5c676a73a0ba191edd5a0341a.tar.bz2 |
liquidio: using NULL instead of plain integer
Fix following warning:
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c:1453:35: warning: Using plain integer as NULL pointer
drivers/net/ethernet/cavium/liquidio/lio_main.c:2910:23: 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index e97e6754ee09..9b7819fdc9de 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -2907,7 +2907,7 @@ static int liquidio_set_vf_spoofchk(struct net_device *netdev, int vfidx, nctrl.ncmd.s.param2 = enable; nctrl.ncmd.s.more = 0; nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; - nctrl.cb_fn = 0; + nctrl.cb_fn = NULL; retval = octnet_send_nic_ctrl_pkt(oct, &nctrl); |