Re: [PATCH][next] net: bcmgenet: return NULL rather than 0 for null pointer

From: David Miller
Date: Mon Jul 17 2017 - 11:56:01 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Mon, 17 Jul 2017 10:07:25 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Don't return plain integer 0, instead return NULL
>
> Fixes sparse warning:
> warning: Using plain integer as NULL pointer
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

This does not apply cleanly to the net-next tree.