commit | 746b92b02c3ddaa305dac677414c0b40ba2e25a4 | [log] [tgz] |
---|---|---|
author | Jeroen Hofstee <jeroen@myspectrum.nl> | Wed Jun 18 22:13:52 2014 +0200 |
committer | Minkyu Kang <mk7.kang@samsung.com> | Mon Jun 23 10:04:13 2014 +0900 |
tree | d867afd85c7e3da13d89a2453518c43a2ec742ff | |
parent | f260792fbe7b7d8d7ffaf0185eeb1ea65e120928 [diff] |
PMIC: MAX77686: fix invalid bus check 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@samsung.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>