]> git.baikalelectronics.ru Git - kernel.git/commit
IPVS: ip_vs_{un,}bind_scheduler NULL arguments
authorSimon Horman <horms@verge.net.au>
Sun, 22 Aug 2010 12:37:52 +0000 (21:37 +0900)
committerSimon Horman <horms@verge.net.au>
Mon, 4 Oct 2010 13:45:24 +0000 (22:45 +0900)
commit8f310014b892aeab7546dc8c6d7b4dc5fd0d289a
treeac44075362b3b17d25f841c50622c0603fc2d3c8
parent21af7ef41a02bc9b01f5b552cbb99f7d1bf0ad46
IPVS: ip_vs_{un,}bind_scheduler NULL arguments

In general NULL arguments aren't passed by the few callers that exist,
so don't test for them.

The exception is to make passing NULL to ip_vs_unbind_scheduler() a noop.

Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_sched.c