History

can: bcm: fix indention and other minor style issues

Oliver Hartkopp committed 10 years ago

Commit 95acb491 parent 05ca5271 file · +12 −14Browse files

Unified · Split

net/can/bcm.c+12−14
@@ -184,42 +184,40 @@ static int bcm_proc_show(struct seq_file *m, void *v) · 183 unmodified lines
184184 continue;
185185
186186 seq_printf(m, "rx_op: %03X %-5s ",
187− op->can_id, bcm_proc_getifname(ifname, op->ifindex));
187+ op->can_id, bcm_proc_getifname(ifname, op->ifindex));
188188 seq_printf(m, "[%u]%c ", op->nframes,
189− (op->flags & RX_CHECK_DLC)?'d':' ');
189+ (op->flags & RX_CHECK_DLC) ? 'd' : ' ');
190190 if (op->kt_ival1.tv64)
191191 seq_printf(m, "timeo=%lld ",
192− (long long)
193− ktime_to_us(op->kt_ival1));
192+ (long long)ktime_to_us(op->kt_ival1));
194193
195194 if (op->kt_ival2.tv64)
196195 seq_printf(m, "thr=%lld ",
197− (long long)
198− ktime_to_us(op->kt_ival2));
196+ (long long)ktime_to_us(op->kt_ival2));
199197
200198 seq_printf(m, "# recv %ld (%ld) => reduction: ",
201− op->frames_filtered, op->frames_abs);
199+ op->frames_filtered, op->frames_abs);
202200
203201 reduction = 100 - (op->frames_filtered * 100) / op->frames_abs;
204202
205203 seq_printf(m, "%s%ld%%\n",
206− (reduction == 100)?"near ":"", reduction);
204+ (reduction == 100) ? "near " : "", reduction);
207205 }
208206
209207 list_for_each_entry(op, &bo->tx_ops, list) {
210208
211209 seq_printf(m, "tx_op: %03X %s [%u] ",
212− op->can_id,
213− bcm_proc_getifname(ifname, op->ifindex),
214− op->nframes);
210+ op->can_id,
211+ bcm_proc_getifname(ifname, op->ifindex),
212+ op->nframes);
215213
216214 if (op->kt_ival1.tv64)
217215 seq_printf(m, "t1=%lld ",
218− (long long) ktime_to_us(op->kt_ival1));
216+ (long long)ktime_to_us(op->kt_ival1));
219217
220218 if (op->kt_ival2.tv64)
221219 seq_printf(m, "t2=%lld ",
222− (long long) ktime_to_us(op->kt_ival2));
220+ (long long)ktime_to_us(op->kt_ival2));
223221
224222 seq_printf(m, "# sent %ld\n", op->frames_abs);
225223 }
@@ -282,7 +280,7 @@ static void bcm_can_tx(struct bcm_op *op) · 56 unmodified lines
282280 /* reached last frame? */
283281 if (op->currframe >= op->nframes)
284282 op->currframe = 0;
285− out:
283+out:
286284 dev_put(dev);
287285 }
288286

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t