Skip to content

Commit bf9d787

Browse files
YueHaibingdavem330
authored andcommitted
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>
1 parent eb16097 commit bf9d787

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx,
14501450
mbox_cmd.recv_len = 0;
14511451
mbox_cmd.recv_status = 0;
14521452
mbox_cmd.fn = NULL;
1453-
mbox_cmd.fn_arg = 0;
1453+
mbox_cmd.fn_arg = NULL;
14541454
ether_addr_copy(mbox_cmd.msg.s.params, mac);
14551455
mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf;
14561456
octeon_mbox_write(oct, &mbox_cmd);

drivers/net/ethernet/cavium/liquidio/lio_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2907,7 +2907,7 @@ static int liquidio_set_vf_spoofchk(struct net_device *netdev, int vfidx,
29072907
nctrl.ncmd.s.param2 = enable;
29082908
nctrl.ncmd.s.more = 0;
29092909
nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
2910-
nctrl.cb_fn = 0;
2910+
nctrl.cb_fn = NULL;
29112911

29122912
retval = octnet_send_nic_ctrl_pkt(oct, &nctrl);
29132913

0 commit comments

Comments
 (0)