Commit e45c2c22 authored by David S. Miller's avatar David S. Miller

[IGMP]: Make ip_mc_dec_group return void.

parent e0b92f50
...@@ -115,7 +115,7 @@ extern void ip_mc_init_dev(struct in_device *); ...@@ -115,7 +115,7 @@ extern void ip_mc_init_dev(struct in_device *);
extern void ip_mc_destroy_dev(struct in_device *); extern void ip_mc_destroy_dev(struct in_device *);
extern void ip_mc_up(struct in_device *); extern void ip_mc_up(struct in_device *);
extern void ip_mc_down(struct in_device *); extern void ip_mc_down(struct in_device *);
extern int ip_mc_dec_group(struct in_device *in_dev, u32 addr); extern void ip_mc_dec_group(struct in_device *in_dev, u32 addr);
extern void ip_mc_inc_group(struct in_device *in_dev, u32 addr); extern void ip_mc_inc_group(struct in_device *in_dev, u32 addr);
#endif #endif
#endif #endif
...@@ -530,9 +530,8 @@ void ip_mc_inc_group(struct in_device *in_dev, u32 addr) ...@@ -530,9 +530,8 @@ void ip_mc_inc_group(struct in_device *in_dev, u32 addr)
* A socket has left a multicast group on device dev * A socket has left a multicast group on device dev
*/ */
int ip_mc_dec_group(struct in_device *in_dev, u32 addr) void ip_mc_dec_group(struct in_device *in_dev, u32 addr)
{ {
int err = -ESRCH;
struct ip_mc_list *i, **ip; struct ip_mc_list *i, **ip;
ASSERT_RTNL(); ASSERT_RTNL();
...@@ -549,13 +548,11 @@ int ip_mc_dec_group(struct in_device *in_dev, u32 addr) ...@@ -549,13 +548,11 @@ int ip_mc_dec_group(struct in_device *in_dev, u32 addr)
ip_rt_multicast_event(in_dev); ip_rt_multicast_event(in_dev);
ip_ma_put(i); ip_ma_put(i);
return 0; return;
} }
err = 0;
break; break;
} }
} }
return -ESRCH;
} }
/* Device going down */ /* Device going down */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment