Re: [PATCH] hwrng: omap3-rom fix pointer warning for omap3_rom_rng_idle

From: Arnd Bergmann
Date: Tue Oct 15 2019 - 08:48:43 EST


On Tue, Oct 15, 2019 at 2:27 PM Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx> wrote:
>
> The omap3_rom_rng_idle function takes a pointer, so give
> it a pointer instead of a plain 0. This fixes the following
> sparse warning:
>
> drivers/char/hw_random/omap3-rom-rng.c:115:28: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
> ---
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Cc: linux-crypto@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>