Skip to content

Commit 6f74dbb

Browse files
Julia Lawalldavem330
authored andcommitted
drivers/atm: Adjust confusing if indentation
Indent the branch of an if. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 022484c commit 6f74dbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/atm/iphase.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static u16 get_desc (IADEV *dev, struct ia_vcc *iavcc) {
220220
while (!desc_num || (dev->desc_tbl[desc_num -1]).timestamp) {
221221
dev->ffL.tcq_rd += 2;
222222
if (dev->ffL.tcq_rd > dev->ffL.tcq_ed)
223-
dev->ffL.tcq_rd = dev->ffL.tcq_st;
223+
dev->ffL.tcq_rd = dev->ffL.tcq_st;
224224
if (dev->ffL.tcq_rd == dev->host_tcq_wr)
225225
return 0xFFFF;
226226
desc_num = *(u_short *)(dev->seg_ram + dev->ffL.tcq_rd);

0 commit comments

Comments
 (0)