]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
liquidio: using NULL instead of plain integer
authorYueHaibing <yuehaibing@huawei.com>
Sat, 16 Feb 2019 09:53:10 +0000 (17:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:40:08 +0000 (16:40 -0800)
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>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/lio_main.c

index 9f4f3c1d504341d6387ee8be598a0a02c3c1fd68..43d11c38b38a9a37f617ac65387744753b5ad285 100644 (file)
@@ -1450,7 +1450,7 @@ void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx,
                mbox_cmd.recv_len = 0;
                mbox_cmd.recv_status = 0;
                mbox_cmd.fn = NULL;
-               mbox_cmd.fn_arg = 0;
+               mbox_cmd.fn_arg = NULL;
                ether_addr_copy(mbox_cmd.msg.s.params, mac);
                mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf;
                octeon_mbox_write(oct, &mbox_cmd);
index e97e6754ee09eb2745bcdcfc9a4ab1227f113096..9b7819fdc9ded2e3f166107f09719aa2b43a94ba 100644 (file)
@@ -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);