Re: [PATCH V1 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

From: Stephen Boyd
Date: Thu Jul 06 2017 - 02:53:48 EST


On 07/03, Kiran Gunda wrote:
> From: Fenglin Wu <fenglinw@xxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxx>
> ---

Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project