Commit e7d52698 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[DECNET]: Do not use lvalue in assignment.

parent 2c9c989a
......@@ -456,7 +456,7 @@ struct sock *dn_alloc_sock(struct socket *sock, int gfp)
if (!sk)
goto out;
DN_SK(sk) = scp = (struct dn_scp *)(sk + 1);
sk->sk_protinfo = scp = (struct dn_scp *)(sk + 1);
if (sock)
sock->ops = &dn_proto_ops;
......
......@@ -327,7 +327,7 @@ static int dn_phase3_output(struct sk_buff *skb)
}
data = skb_push(skb, sizeof(struct dn_short_packet) + 2);
((unsigned short *)data) = dn_htons(skb->len - 2);
data = (unsigned char *)dn_htons(skb->len - 2);
sp = (struct dn_short_packet *)(data + 2);
sp->msgflg = DN_RT_PKT_SHORT|(cb->rt_flags&(DN_RT_F_RQR|DN_RT_F_RTS));
......
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