Commit bb8a10bb authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller

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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7df0b8d
...@@ -693,22 +693,22 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg) ...@@ -693,22 +693,22 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg)
aux = scp->accessdata.acc_userl; aux = scp->accessdata.acc_userl;
*skb_put(skb, 1) = aux; *skb_put(skb, 1) = aux;
if (aux > 0) if (aux > 0)
memcpy(skb_put(skb, aux), scp->accessdata.acc_user, aux); memcpy(skb_put(skb, aux), scp->accessdata.acc_user, aux);
aux = scp->accessdata.acc_passl; aux = scp->accessdata.acc_passl;
*skb_put(skb, 1) = aux; *skb_put(skb, 1) = aux;
if (aux > 0) if (aux > 0)
memcpy(skb_put(skb, aux), scp->accessdata.acc_pass, aux); memcpy(skb_put(skb, aux), scp->accessdata.acc_pass, aux);
aux = scp->accessdata.acc_accl; aux = scp->accessdata.acc_accl;
*skb_put(skb, 1) = aux; *skb_put(skb, 1) = aux;
if (aux > 0) if (aux > 0)
memcpy(skb_put(skb, aux), scp->accessdata.acc_acc, aux); memcpy(skb_put(skb, aux), scp->accessdata.acc_acc, aux);
aux = (__u8)le16_to_cpu(scp->conndata_out.opt_optl); aux = (__u8)le16_to_cpu(scp->conndata_out.opt_optl);
*skb_put(skb, 1) = aux; *skb_put(skb, 1) = aux;
if (aux > 0) if (aux > 0)
memcpy(skb_put(skb,aux), scp->conndata_out.opt_data, aux); memcpy(skb_put(skb, aux), scp->conndata_out.opt_data, aux);
scp->persist = dn_nsp_persist(sk); scp->persist = dn_nsp_persist(sk);
scp->persist_fxn = dn_nsp_retrans_conninit; scp->persist_fxn = dn_nsp_retrans_conninit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment