spmi: pmic-arb: u8 <= 0xff is always true
[firefly-linux-kernel-4.4.55.git] / drivers / spmi / spmi-pmic-arb.c
index fce5c0d9e3bdb300d563e2dfc23bf81336d11f38..96615d8076945936639097db19c4a18a31a703b5 100644 (file)
@@ -360,7 +360,7 @@ static int pmic_arb_write_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid,
                opc = PMIC_ARB_OP_EXT_WRITE;
        else if (opc >= 0x30 && opc <= 0x37)
                opc = PMIC_ARB_OP_EXT_WRITEL;
-       else if (opc >= 0x80 && opc <= 0xFF)
+       else if (opc >= 0x80)
                opc = PMIC_ARB_OP_ZERO_WRITE;
        else
                return -EINVAL;