diff options
author | Brian Masney <masneyb@onstation.org> | 2016-12-03 21:19:25 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-12-04 11:01:10 +0000 |
commit | f40531d1e7848cf49f323f91a653d16caac27431 (patch) | |
tree | b2b97a897a678753fd4da85578a3e178d57b7cb2 /Documentation/media/net.h.rst.exceptions | |
parent | 91ca1a8c584f55857b1f6ab20a1d3a1ce7a559bb (diff) |
staging: iio: isl29028: remove nested if statements
There are two callers to the function isl29028_set_als_ir_mode() and
both instances use a nested if statement to only change the chip state
if it is not in the proper mode. This patch moves this check into the
isl29028_set_als_ir_mode() function to remove the nested if
statements.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/media/net.h.rst.exceptions')
0 files changed, 0 insertions, 0 deletions