Commit 43728fa5 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

ipv6: remove assignment in if condition



Do assignment before if condition and test !skb like in rawv6_recvmsg()

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fc08c258
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -548,7 +548,8 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
	if (!rp->checksum)
	if (!rp->checksum)
		goto send;
		goto send;


	if ((skb = skb_peek(&sk->sk_write_queue)) == NULL)
	skb = skb_peek(&sk->sk_write_queue);
	if (!skb)
		goto out;
		goto out;


	offset = rp->offset;
	offset = rp->offset;