From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minkyu Kang Date: Mon, 23 Jun 2014 17:43:20 +0900 Subject: [U-Boot] [PATCH] PMIC: MAX77686: fix invalid bus check In-Reply-To: <1403122432-14479-1-git-send-email-jeroen@myspectrum.nl> References: <1403122432-14479-1-git-send-email-jeroen@myspectrum.nl> Message-ID: <53A7E8A8.60301@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Jeroen Hofstee > --- > drivers/power/pmic/pmic_max77686.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > applied to u-boot-samsung. Thanks, Minkyu Kang.