提交 e1769b3c 编写于 作者: F Frederik Deweerdt 提交者: Greg Kroah-Hartman

Staging: line6: pod.c: style cleanups

Line6 pod.c: Minor style cleanups
Signed-off-by: NFrederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 542f4915
...@@ -123,7 +123,7 @@ static void pod_mark_batch_all_dirty(struct usb_line6_pod *pod) ...@@ -123,7 +123,7 @@ static void pod_mark_batch_all_dirty(struct usb_line6_pod *pod)
{ {
int i; int i;
for (i = POD_CONTROL_SIZE; i--;) for (i = 0; i < POD_CONTROL_SIZE; i++)
set_bit(i, pod->param_dirty); set_bit(i, pod->param_dirty);
} }
...@@ -579,8 +579,8 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr, ...@@ -579,8 +579,8 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr,
if (count != sizeof(pod->prog_data)) { if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev, dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n", "data block must be exactly %d bytes\n",
(int)sizeof(pod->prog_data)); sizeof(pod->prog_data));
return -EINVAL; return -EINVAL;
} }
...@@ -692,7 +692,7 @@ static ssize_t pod_set_dump_buf(struct device *dev, ...@@ -692,7 +692,7 @@ static ssize_t pod_set_dump_buf(struct device *dev,
if (count != sizeof(pod->prog_data)) { if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev, dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n", "data block must be exactly %d bytes\n",
(int)sizeof(pod->prog_data)); sizeof(pod->prog_data));
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册