netfilter: ipvs: remove the unused variable
Subsystems (4)
PATCH 1/1 netfilter: ipvs: remove the unused variable
when I built the netfilter, I got that:net/netfilter/ipvs/ip_vs_sync.c: In function sync_thread_master’:net/netfilter/ipvs/ip_vs_sync.c:1640: warning: unused variable ‘ret’
--- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipvs/ip_vs_sync.c +1 -1
@@ -1637,7 +1637,7 @@ static int sync_thread_master(void *data)continue ; }while (ip_vs_send_sync_msg (tinfo->sock, sb->mesg) <0 ) { -int ret =__wait_event_interruptible (*sk_sleep (sk), +__wait_event_interruptible (*sk_sleep (sk),sock_writeable (sk) ||kthread_should_stop ());if (unlikely (kthread_should_stop ()))
Signature · 1 line
1.7.12
Julian Anastasov
maintainerHello,
Quoted 3 lines · Wang Weidong
when I built the netfilter, I got that:
net/netfilter/ipvs/ip_vs_sync.c: In function sync_thread_master’:net/netfilter/ipvs/ip_vs_sync.c:1640: warning: unused variable ‘ret’
There is another patch that we plan to apply but
due to possible merge conflict it was delayed:
http://marc.info/?t=138426695600002&r=1&w=2
http://marc.info/?t=138426469400008&r=1&w=2
May be it is time to apply it...
Quoted 20 lines
Signed-off-by Wang Weidong <[email protected]>--- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/ipvs/ip_vs_sync.c +1
-1@@ -1637,7 +1637,7 @@ static int sync_thread_master(void *data)continue ; }while (ip_vs_send_sync_msg (tinfo->sock, sb->mesg) <0 ) { -int ret =__wait_event_interruptible (*sk_sleep (sk), +__wait_event_interruptible (*sk_sleep (sk),sock_writeable (sk) ||kthread_should_stop ());if (unlikely (kthread_should_stop ()))Signature · 1 line
1.7.12
Regards
--
Julian Anastasov <[email protected]>
Quoted 9 lines · Julian Anastasov
Hello,
Quoted 3 lines · Wang Weidong
when I built the netfilter, I got that:
net/netfilter/ipvs/ip_vs_sync.c: In function sync_thread_master’:net/netfilter/ipvs/ip_vs_sync.c:1640: warning: unused variable ‘ret’
Quoted 8 lines
There is another patch that we plan to apply but
due to possible merge conflict it was delayed:http://marc.info/?t=138426695600002&r=1&w=2
http://marc.info/?t=138426469400008&r=1&w=2May be it is time to apply it...
Ok, Got it.
Regards.
Wang
Quoted 26 lines
Quoted 20 lines
Signed-off-by Wang Weidong <[email protected]>--- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/ipvs/ip_vs_sync.c +1
-1@@ -1637,7 +1637,7 @@ static int sync_thread_master(void *data)continue ; }while (ip_vs_send_sync_msg (tinfo->sock, sb->mesg) <0 ) { -int ret =__wait_event_interruptible (*sk_sleep (sk), +__wait_event_interruptible (*sk_sleep (sk),sock_writeable (sk) ||kthread_should_stop ());if (unlikely (kthread_should_stop ()))Signature · 1 line
1.7.12Regards
--
Julian Anastasov <[email protected]>
Simon Horman
maintainerQuoted 9 lines · Julian Anastasov
Hello,
Quoted 3 lines · Wang Weidong
when I built the netfilter, I got that:
net/netfilter/ipvs/ip_vs_sync.c: In function sync_thread_master’:net/netfilter/ipvs/ip_vs_sync.c:1640: warning: unused variable ‘ret’
Quoted 7 lines
There is another patch that we plan to apply but
due to possible merge conflict it was delayed:http://marc.info/?t=138426695600002&r=1&w=2
http://marc.info/?t=138426469400008&r=1&w=2May be it is time to apply it...
Thanks, I have done so.