diff options
author | Fenglin Wu <fenglinw@codeaurora.org> | 2017-07-28 12:40:47 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 13:51:19 +0200 |
commit | 53d296b594645697df5885995d6318a083554d93 (patch) | |
tree | df2971cb274b8679fb662e5882f3659cf603a59f /drivers/spmi/spmi.c | |
parent | 40f318f0ed674e0cd12e2dfcb5af71577ea58b4e (diff) | |
download | linux-53d296b594645697df5885995d6318a083554d93.tar.bz2 |
spmi: pmic-arb: Remove checking opc value not less than 0
The opc parameter in pmic_arb_write_cmd() function is defined with type
u8 and it's always greater than or equal to 0. Checking that it's not
less than 0 is redundant and it can cause a forbidden warning during
compilation. Remove the check.
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spmi/spmi.c')
0 files changed, 0 insertions, 0 deletions