[U-Boot] [PATCH] PMIC: MAX77686: fix invalid bus check

Minkyu Kang mk7.kang at samsung.com
Mon Jun 23 10:43:20 CEST 2014


On 19/06/14 05:13, Jeroen Hofstee wrote:
> Since p->bus is unsigned checking for negative values
> is optimized away. Since bus is already used as an argument
> use tmp. While at it, don't declare variables in the middle
> of a function.
> 
> cc: Rajeshwari Shinde <rajeshwari.s at samsung.com>
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
> ---
>  drivers/power/pmic/pmic_max77686.c | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
> 

applied to u-boot-samsung.

Thanks,
Minkyu Kang.


More information about the U-Boot mailing list