]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: docg3: Fix passing zero to 'PTR_ERR' warning in doc_probe_device
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 Jan 2019 06:58:27 +0000 (14:58 +0800)
committerBoris Brezillon <bbrezillon@kernel.org>
Tue, 29 Jan 2019 14:09:16 +0000 (15:09 +0100)
commit32937a82f36c7bbe08db4052de94bc7ade4e3c51
treed392b8fedd848a767912859fe2bde3910ca83d6b
parent2431c4f5b46c32c4ac495456b1ef4ce59c0bb85d
mtd: docg3: Fix passing zero to 'PTR_ERR' warning in doc_probe_device

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@huawei.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
drivers/mtd/devices/docg3.c