Re: [-next] mtd: docg3: Fix passing zero to 'PTR_ERR' warning in doc_probe_device
From: Boris Brezillon
Date: Mon Jan 28 2019 - 04:36:50 EST
On Wed, 2019-01-23 at 06:58:27 UTC, YueHaibing wrote:
> Fix a static code checker warning:
> drivers/mtd/devices/docg3.c:1875
> doc_probe_device() warn: passing zero to 'ERR_PTR'
>
> Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> Acked-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>
Applied to http://git.infradead.org/linux-mtd.git mtd/next, thanks.
Boris