Skip to content

Commit

Permalink
Staging: line6: pod.c: style cleanups
Browse files Browse the repository at this point in the history
Line6 pod.c: Minor style cleanups

Signed-off-by: Frederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Frederik Deweerdt authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 542f491 commit e1769b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/line6/pod.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void pod_mark_batch_all_dirty(struct usb_line6_pod *pod)
{
int i;

for (i = POD_CONTROL_SIZE; i--;)
for (i = 0; i < POD_CONTROL_SIZE; i++)
set_bit(i, pod->param_dirty);
}

Expand Down Expand Up @@ -579,8 +579,8 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr,

if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n",
(int)sizeof(pod->prog_data));
"data block must be exactly %d bytes\n",
sizeof(pod->prog_data));
return -EINVAL;
}

Expand Down Expand Up @@ -692,7 +692,7 @@ static ssize_t pod_set_dump_buf(struct device *dev,
if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n",
(int)sizeof(pod->prog_data));
sizeof(pod->prog_data));
return -EINVAL;
}

Expand Down

0 comments on commit e1769b3

Please sign in to comment.