From: Frederik Deweerdt Date: Mon, 14 Sep 2009 08:51:38 +0000 (+0000) Subject: Staging: line6: pod.c: style cleanups X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1769b3cf0670935d1988e65f758bf6f29c0e107;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: line6: pod.c: style cleanups Line6 pod.c: Minor style cleanups Signed-off-by: Frederik Deweerdt Signed-off-by: Greg Kroah-Hartman --- 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) { int i; - for (i = POD_CONTROL_SIZE; i--;) + for (i = 0; i < POD_CONTROL_SIZE; i++) set_bit(i, pod->param_dirty); } @@ -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; } @@ -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; }