summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2016-11-12 21:19:30 +0300
committerJonathan Cameron <jic23@kernel.org>2016-11-13 16:07:26 +0300
commited9125566b80af9f944fdbc69bb3720f786324cb (patch)
tree3dc09a8ad43daa614032f29a80dd0537349c980f /include/linux
parent043c1da79472d7b030a4f7df40e2889e15c979a5 (diff)
downloadlinux-ed9125566b80af9f944fdbc69bb3720f786324cb.tar.xz
staging: iio: tsl2583: moved code block inside else statement
The check for ch1lux > ch0lux inside tsl2583_get_lux is only valid if the ratio is not equal to zero. Move the code block inside the else statement. This does away with the need to initialize the variables to zero. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions