spmi: pmic-arb: u8 <= 0xff is always true
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 28 Aug 2015 19:31:10 +0000 (12:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 12:03:15 +0000 (13:03 +0100)
commit9b76968db6869666c9b30ea99894e9dd88a0ab13
treeaf431cbb3786c6e3bebe50b20e080e8268efc39f
parentd5144796db928b1f7a074c4be3575c50951c9569
spmi: pmic-arb: u8 <= 0xff is always true

Silences this static checker warning:

 drivers/spmi/spmi-pmic-arb.c:363
 pmic_arb_write_cmd() warn: always true condition
 '(opc <= 255) => (0-255 <= 255)'

Cc: Andy Gross <agross@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c