diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-09-26 22:24:46 +0200 |
|---|---|---|
| committer | David Collins <collinsd@codeaurora.org> | 2017-01-13 17:42:18 -0800 |
| commit | 1739f5d37692f31f5b22f62238cb008d3d52475f (patch) | |
| tree | f997ffb8d426803f8dbf268156906aa6b405935b /tools/perf/scripts/python | |
| parent | 0ff5671bb2f117722b8b6410fb7b0d1253e06ca4 (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.
Change-Id: I4f558ffb9cde0c9c1127202cd8b5d3ff11987c86
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e98cc182a06af3b8e91d6d719708db07045d78c4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: David Collins <collinsd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
