]> asedeno.scripts.mit.edu Git - linux.git/commit
spmi: pmic-arb: Remove checking opc value not less than 0
authorFenglin Wu <fenglinw@codeaurora.org>
Fri, 28 Jul 2017 07:10:47 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commit53d296b594645697df5885995d6318a083554d93
treedf2971cb274b8679fb662e5882f3659cf603a59f
parent40f318f0ed674e0cd12e2dfcb5af71577ea58b4e
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>
drivers/spmi/spmi-pmic-arb.c