]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Thu, 29 Oct 2015 20:02:53 +0000 (21:02 +0100)
commit5da01d0ee90df4bdc62e5c9a3ab932d8eed60e2b
treef42b36911dc1f7e1d8a938d12f4bc682a9a23d62
parent64368f0f3fa11fbcdb4297348047e662925037bd
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