summaryrefslogtreecommitdiff
path: root/tools/arch
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-01-11 13:38:52 -0800
committerShaohua Li <shli@fb.com>2017-01-24 11:20:13 -0800
commitd46d29f072accb069cb42b5fbebcc77d9094a785 (patch)
tree03e73cdb9804339ff011ddfe53c0f5b590c93b16 /tools/arch
parent557ed56cc75e0a33c15ba438734a280bac23bd32 (diff)
md/raid5-cache: delete meaningless code
sector_t is unsigned long, it's never < 0 Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions
able-gpio" in the DTB, of_get_named_gpio() will return -EINVAL in this case, we should return immediately here. And for the optional property "gpios", we didn't check the return value, the driver will continue to the point where gpio_request_array() is called, it doesn't make sense to continue if we got -EPROBE_DEFER or -EINVAL here. This patch tries to address these two issues by properly checking the return value of of_get_named_gpio. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/batman-adv/translation-table.h')