Skip to content

Commit cc71b7b

Browse files
Tim Hansendavem330
authored andcommitted
net/ipv6: remove unused err variable on icmpv6_push_pending_frames
int err is unused by icmpv6_push_pending_frames(), this patch returns removes the variable and returns the function with 0. git bisect shows this variable has been around since linux has been in git in commit 1da177e. This was found by running make coccicheck M=net/ipv6/ on linus' tree on commit 77ede3a (current HEAD as of this patch). Signed-off-by: Tim Hansen <devtimhansen@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 380537b commit cc71b7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/ipv6/icmp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ int icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
255255
{
256256
struct sk_buff *skb;
257257
struct icmp6hdr *icmp6h;
258-
int err = 0;
259258

260259
skb = skb_peek(&sk->sk_write_queue);
261260
if (!skb)
@@ -288,7 +287,7 @@ int icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
288287
}
289288
ip6_push_pending_frames(sk);
290289
out:
291-
return err;
290+
return 0;
292291
}
293292

294293
struct icmpv6_msg {

0 commit comments

Comments
 (0)