diff options
author | Frederik Deweerdt <frederik.deweerdt@xprog.eu> | 2009-09-14 04:51:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:02:34 -0400 |
commit | e1769b3cf0670935d1988e65f758bf6f29c0e107 (patch) | |
tree | dd865304240a7b0a13a049aa0ed334262407bc09 /drivers | |
parent | 542f491542b0312f8b28e17a013f6f8f114bda68 (diff) |
Staging: line6: pod.c: style cleanups
Line6 pod.c: Minor style cleanups
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/line6/pod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/line6/pod.c b/drivers/staging/line6/pod.c index fa5caa245d85..4c5b9d584000 100644 --- a/drivers/staging/line6/pod.c +++ b/drivers/staging/line6/pod.c | |||
@@ -123,7 +123,7 @@ static void pod_mark_batch_all_dirty(struct usb_line6_pod *pod) | |||
123 | { | 123 | { |
124 | int i; | 124 | int i; |
125 | 125 | ||
126 | for (i = POD_CONTROL_SIZE; i--;) | 126 | for (i = 0; i < POD_CONTROL_SIZE; i++) |
127 | set_bit(i, pod->param_dirty); | 127 | set_bit(i, pod->param_dirty); |
128 | } | 128 | } |
129 | 129 | ||
@@ -579,8 +579,8 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr, | |||
579 | 579 | ||
580 | if (count != sizeof(pod->prog_data)) { | 580 | if (count != sizeof(pod->prog_data)) { |
581 | dev_err(pod->line6.ifcdev, | 581 | dev_err(pod->line6.ifcdev, |
582 | "data block must be exactly %d bytes\n", | 582 | "data block must be exactly %d bytes\n", |
583 | (int)sizeof(pod->prog_data)); | 583 | sizeof(pod->prog_data)); |
584 | return -EINVAL; | 584 | return -EINVAL; |
585 | } | 585 | } |
586 | 586 | ||
@@ -692,7 +692,7 @@ static ssize_t pod_set_dump_buf(struct device *dev, | |||
692 | if (count != sizeof(pod->prog_data)) { | 692 | if (count != sizeof(pod->prog_data)) { |
693 | dev_err(pod->line6.ifcdev, | 693 | dev_err(pod->line6.ifcdev, |
694 | "data block must be exactly %d bytes\n", | 694 | "data block must be exactly %d bytes\n", |
695 | (int)sizeof(pod->prog_data)); | 695 | sizeof(pod->prog_data)); |
696 | return -EINVAL; | 696 | return -EINVAL; |
697 | } | 697 | } |
698 | 698 | ||