Skip to content
Snippets Groups Projects
Commit 00d4796c authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Minkyu Kang
Browse files

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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 0cf7e189
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment