projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: tca6507: use swap() to make code cleaner
[linux-2.6-microblaze.git]
/
drivers
/
leds
/
leds-tca6507.c
diff --git
a/drivers/leds/leds-tca6507.c
b/drivers/leds/leds-tca6507.c
index
225b765
..
de8eed9
100644
(file)
--- a/
drivers/leds/leds-tca6507.c
+++ b/
drivers/leds/leds-tca6507.c
@@
-242,9
+242,7
@@
static int choose_times(int msec, int *c1p, int *c2p)
if (diff < 65536) {
int actual;
if (msec & 1) {
- c1 = *c2p;
- *c2p = *c1p;
- *c1p = c1;
+ swap(*c2p, *c1p);
}
actual = time_codes[*c1p] + time_codes[*c2p];
if (*c1p < *c2p)