MIPS: Lantiq: Fix check for return value of request_mem_region()
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Wed, 28 Oct 2015 22:37:44 +0000 (23:37 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 11 Nov 2015 07:37:34 +0000 (08:37 +0100)
commit6e807852676a2ef6f104b56114d7a5096d42ff37
tree35bad44025a893bc208902fbe2975c530148cc17
parent13648d724549ec5bd986e88ec628c1b42ab0258e
MIPS: Lantiq: Fix check for return value of request_mem_region()

request_mem_region() returns a pointer and not an integer with an error
value. A check for "< 0" on a pointer will cause problems, replace it
with not null checks instead. This was found with sparse.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Acked-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11395/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/irq.c
arch/mips/lantiq/xway/reset.c
arch/mips/lantiq/xway/sysctrl.c