]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
l2tp: cleanup l2tp_tunnel_delete calls
authorJiri Slaby <jslaby@suse.cz>
Wed, 25 Oct 2017 13:57:55 +0000 (15:57 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:28:33 +0000 (11:28 +0100)
BugLink: http://bugs.launchpad.net/bugs/1745052
[ Upstream commit 4dc12ffeaeac939097a3f55c881d3dc3523dff0c ]

l2tp_tunnel_delete does not return anything since commit 62b982eeb458
("l2tp: fix race condition in l2tp_tunnel_delete").  But call sites of
l2tp_tunnel_delete still do casts to void to avoid unused return value
warnings.

Kill these now useless casts.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Sabrina Dubroca <sd@queasysnail.net>
Cc: Guillaume Nault <g.nault@alphalink.fr>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_netlink.c

index d48281ca9c72446b14ce91777ed52123a5c78cd8..ec8f6a6485e393073bd3aa12a6b0653871e3bb3a 100644 (file)
@@ -1856,7 +1856,7 @@ static __net_exit void l2tp_exit_net(struct net *net)
 
        rcu_read_lock_bh();
        list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) {
-               (void)l2tp_tunnel_delete(tunnel);
+               l2tp_tunnel_delete(tunnel);
        }
        rcu_read_unlock_bh();
 }
index 665cc74df5c58de140d555d651295fbe8d2b8312..fb3248ff8b4847c874f701a40079bf17be6fbd8f 100644 (file)
@@ -285,7 +285,7 @@ static int l2tp_nl_cmd_tunnel_delete(struct sk_buff *skb, struct genl_info *info
        l2tp_tunnel_notify(&l2tp_nl_family, info,
                           tunnel, L2TP_CMD_TUNNEL_DELETE);
 
-       (void) l2tp_tunnel_delete(tunnel);
+       l2tp_tunnel_delete(tunnel);
 
 out:
        return ret;