]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: rockchip_sdhci: Correct error checking
authorHaolin Li <li.haolin@qq.com>
Tue, 22 Mar 2022 12:58:02 +0000 (05:58 -0700)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:12 +0000 (11:25 +0800)
commitfdda7901cc77b5bc525263c385cc19f151b6612b
tree748c2fa73a7b3e7aef2dcb3a71cfaa65480b240a
parent9859465bfe838bc8264d45e1a1bed847bba74bad
mmc: rockchip_sdhci: Correct error checking

A pointer can not be negative. Use macro IS_ERR_OR_NULL() for checking.

Signed-off-by: Haolin Li <li.haolin@qq.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/rockchip_sdhci.c