greybus: db3-platform: get rid of redundant gpio tests
authorAlex Elder <elder@linaro.org>
Thu, 22 Oct 2015 18:03:26 +0000 (13:03 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 22 Oct 2015 21:05:21 +0000 (14:05 -0700)
commit76be20a2f39d3b08bdf9b653419fbd367920e856
tree893c20f65575ce03714953324816f82a35048450
parented8fbc2d5611716413c2e31693256c7156692372
greybus: db3-platform: get rid of redundant gpio tests

In apb_ctrl_get_devtree_data(), the value returned by
of_get_named_gpio() has a redundant test for a negative
return value.  GPIO numbers are non-negative, so this
test is redundant--testing gpio_is_valid() is sufficient.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/db3-platform.c