OSDN Git Service

MIPS: Lantiq: Fix another request_mem_region() return code check
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jan 2017 15:18:40 +0000 (16:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 25 Jan 2017 01:51:10 +0000 (02:51 +0100)
commit98ea51cb0c8ce009d9da1fd7b48f0ff1d7a9bbb0
treefbc3fd58ad79e76ed739558fa06fcdc1f8973a9a
parente45587293c6939f7e64b7cd75be41c3a2a6cd1dc
MIPS: Lantiq: Fix another request_mem_region() return code check

Hauke already fixed a couple of them, but one instance remains
that checks for a negative integer when it should check
for a NULL pointer:

arch/mips/lantiq/xway/sysctrl.c: In function 'ltq_soc_init':
arch/mips/lantiq/xway/sysctrl.c:473:19: error: ordered comparison of pointer with integer zero [-Werror=extra]

Fixes: 6e807852676a ("MIPS: Lantiq: Fix check for return value of request_mem_region()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: John Crispin <john@phrozen.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15043/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/xway/sysctrl.c