diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-28 15:51:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-29 21:35:51 +0300 |
commit | 335ab8ba617ec5bdc0c1595aae875304277e2495 (patch) | |
tree | 9409f8245bf7d145b915914fa364d04f1d7e213b /drivers/net/ethernet/broadcom/genet/bcmgenet.c | |
parent | 99fe29d3a25f813146816b322367b4c6a0fdec84 (diff) | |
download | linux-335ab8ba617ec5bdc0c1595aae875304277e2495.tar.xz |
net: bcmgenet: return NULL instead of plain integer
Fixes the following sparse warning:
drivers/net/ethernet/broadcom/genet/bcmgenet.c:1351:16: warning:
Using plain integer as NULL pointer
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index 7db8edc643ec..2f4cb5c11e18 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -1348,7 +1348,7 @@ static struct sk_buff *bcmgenet_free_tx_cb(struct device *dev, dma_unmap_addr_set(cb, dma_addr, 0); } - return 0; + return NULL; } /* Simple helper to free a receive control block's resources */ |