Skip to content

Commit

Permalink
ipvs: Removed unused variables
Browse files Browse the repository at this point in the history
ipvs is not used in ip_vs_genl_set_cmd() or ip_vs_genl_get_cmd()

Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Simon Horman authored and Pablo Neira Ayuso committed Nov 1, 2011
1 parent 4a516f1 commit b6338b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/netfilter/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3326,10 +3326,8 @@ static int ip_vs_genl_set_cmd(struct sk_buff *skb, struct genl_info *info)
int ret = 0, cmd;
int need_full_svc = 0, need_full_dest = 0;
struct net *net;
struct netns_ipvs *ipvs;

net = skb_sknet(skb);
ipvs = net_ipvs(net);
cmd = info->genlhdr->cmd;

mutex_lock(&__ip_vs_mutex);
Expand Down Expand Up @@ -3421,10 +3419,8 @@ static int ip_vs_genl_get_cmd(struct sk_buff *skb, struct genl_info *info)
void *reply;
int ret, cmd, reply_cmd;
struct net *net;
struct netns_ipvs *ipvs;

net = skb_sknet(skb);
ipvs = net_ipvs(net);
cmd = info->genlhdr->cmd;

if (cmd == IPVS_CMD_GET_SERVICE)
Expand Down

0 comments on commit b6338b5

Please sign in to comment.