commit | e98cc182a06af3b8e91d6d719708db07045d78c4 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Mon Sep 26 22:24:46 2016 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Sep 27 12:43:34 2016 +0200 |
tree | a5bffbce018a44fe16e7ea96f946d72c22e4d4ba | |
parent | e7fca5d860aeeb1e606448f5191cea8d925cc7a3 [diff] |
spmi: pmic-arb: Return an error code if sanity check fails If the test 'if (channel > 5)' is true, then we will return 'err' which is known to be 0 at this point. Return -EINVAL instead. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>