Commit bb8a10bbd10a45db0eb45bac520489bdbc0917ef

Authored by Julia Lawall
Committed by David S. Miller
1 parent f7df0b8d92

net/decnet: 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>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

net/decnet/dn_nsp_out.c
... ... @@ -693,22 +693,22 @@
693 693 aux = scp->accessdata.acc_userl;
694 694 *skb_put(skb, 1) = aux;
695 695 if (aux > 0)
696   - memcpy(skb_put(skb, aux), scp->accessdata.acc_user, aux);
  696 + memcpy(skb_put(skb, aux), scp->accessdata.acc_user, aux);
697 697  
698 698 aux = scp->accessdata.acc_passl;
699 699 *skb_put(skb, 1) = aux;
700 700 if (aux > 0)
701   - memcpy(skb_put(skb, aux), scp->accessdata.acc_pass, aux);
  701 + memcpy(skb_put(skb, aux), scp->accessdata.acc_pass, aux);
702 702  
703 703 aux = scp->accessdata.acc_accl;
704 704 *skb_put(skb, 1) = aux;
705 705 if (aux > 0)
706   - memcpy(skb_put(skb, aux), scp->accessdata.acc_acc, aux);
  706 + memcpy(skb_put(skb, aux), scp->accessdata.acc_acc, aux);
707 707  
708 708 aux = (__u8)le16_to_cpu(scp->conndata_out.opt_optl);
709 709 *skb_put(skb, 1) = aux;
710 710 if (aux > 0)
711   - memcpy(skb_put(skb,aux), scp->conndata_out.opt_data, aux);
  711 + memcpy(skb_put(skb, aux), scp->conndata_out.opt_data, aux);
712 712  
713 713 scp->persist = dn_nsp_persist(sk);
714 714 scp->persist_fxn = dn_nsp_retrans_conninit;