net: bcmgenet: return NULL instead of plain integer
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Mar 2018 12:51:19 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:35:51 +0000 (14:35 -0400)
commit335ab8ba617ec5bdc0c1595aae875304277e2495
tree9409f8245bf7d145b915914fa364d04f1d7e213b
parent99fe29d3a25f813146816b322367b4c6a0fdec84
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c