[PATCH linux dev-5.2 1/5] mmc: sdhci-of-aspeed: Fix return value check in aspeed_sdc_probe()

Joel Stanley joel at jms.id.au
Mon Sep 2 10:37:08 AEST 2019


On Fri, 30 Aug 2019 at 09:02, Andrew Jeffery <andrew at aj.id.au> wrote:
>
> From: Wei Yongjun <weiyongjun1 at huawei.com>
>
> In case of error, the function of_platform_device_create() returns
> NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL test.
>
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
> Reviewed-by: Andrew Jeffery <andrew at aj.id.au>
> Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
> (cherry picked from commit 7b7de08a14b59d45cc4720bfb21732063ccfc8f6)
> Signed-off-by: Andrew Jeffery <andrew at aj.id.au>

Reviewed-by: Joel Stanley <joel at jms.id.au>


More information about the openbmc mailing list