[PATCH] mmc: rockchip_sdhci: Correct error checking

Simon Glass sjg at chromium.org
Wed Mar 23 10:59:57 CET 2022


On Tue, 22 Mar 2022 at 06:58, <li.haolin at qq.com> wrote:
>
> From: Haolin Li <li.haolin at qq.com>
>
> A pointer can not be negative. Use macro IS_ERR_OR_NULL() for checking.
>
> Signed-off-by: Haolin Li <li.haolin at qq.com>
> ---
>  drivers/mmc/rockchip_sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list