diff options
author | Jean Delvare <khali@linux-fr.org> | 2011-08-31 19:53:41 +0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-09-06 19:56:07 +0400 |
commit | f020b007d5dd24597f5e985a6309bcb8393797ed (patch) | |
tree | 17d7db505904c9cb57c79e586d31eb79376dd9b6 /lib/locking-selftest-wsem.h | |
parent | d91aae1e52e5289a94f4ddff968decfc8d37271e (diff) | |
download | linux-f020b007d5dd24597f5e985a6309bcb8393797ed.tar.xz |
hwmon: (ucd9000/ucd9200) Optimize array walk
Rewrite the loop walking the id array during probe. The new code is
better adapted to a null-terminated array, and is also clearer and
more efficient than the original.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Axel Lin <axel.lin@gmail.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions