commit | 76be20a2f39d3b08bdf9b653419fbd367920e856 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Thu Oct 22 13:03:26 2015 -0500 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Thu Oct 22 14:05:21 2015 -0700 |
tree | 893c20f65575ce03714953324816f82a35048450 | |
parent | ed8fbc2d5611716413c2e31693256c7156692372 [diff] |
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>