diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-07-17 11:27:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-18 22:40:58 +0200 |
commit | bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a (patch) | |
tree | d8450f68e29f768082ee65284ad4ad06ab476814 /drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c | |
parent | net/mlx5: fix an unused-function warning (diff) | |
download | linux-bf20a5c1d56043a0ee4263fbd22ca0f70ba4d09a.tar.xz linux-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/cn23xx_vf_device.c')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c b/drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c index 1f8b7f651254..91dce8b8ef7e 100644 --- a/drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c +++ b/drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c @@ -382,7 +382,7 @@ void cn23xx_vf_ask_pf_to_do_flr(struct octeon_device *oct) mbox_cmd.recv_len = 0; mbox_cmd.recv_status = 0; mbox_cmd.fn = NULL; - mbox_cmd.fn_arg = 0; + mbox_cmd.fn_arg = NULL; octeon_mbox_write(oct, &mbox_cmd); } |