summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>2015-10-28 23:37:44 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-11-11 08:37:34 +0100
commit6e807852676a2ef6f104b56114d7a5096d42ff37 (patch)
tree35bad44025a893bc208902fbe2975c530148cc17 /lib
parentMIPS: Lantiq: Add support for xRX220 SoC (diff)
downloadlinux-6e807852676a2ef6f104b56114d7a5096d42ff37.tar.xz
linux-6e807852676a2ef6f104b56114d7a5096d42ff37.zip
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions