]> git.baikalelectronics.ru Git - kernel.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>
Wed, 11 Nov 2015 07:37:34 +0000 (08:37 +0100)
commit40c4dfd03ff6ba4a5f8419632cb9616b45b9c5d5
tree35bad44025a893bc208902fbe2975c530148cc17
parentef02086b5cedc78d3e40c04b4a844f01f8a708bd
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