]> git.neil.brown.name Git - history.git/commitdiff
[IGMP]: Make ip_mc_dec_group return void.
authorDavid S. Miller <davem@nuts.ninka.net>
Fri, 30 Aug 2002 10:47:30 +0000 (03:47 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Fri, 30 Aug 2002 10:47:30 +0000 (03:47 -0700)
include/linux/igmp.h
net/ipv4/igmp.c

index 76cf68f03c250e94150833a7920e99f675247453..fd28c22a5036257ccf4b6c85fdf6c921dc964d7d 100644 (file)
@@ -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_up(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);
 #endif
 #endif
index 1ac00c0c296e71bacf4c0eb1aa4ef718b4b7670a..2b60971dc356e9e4157dd54b864eeb734c2c51bd 100644 (file)
@@ -530,9 +530,8 @@ out:
  *     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;
        
        ASSERT_RTNL();
@@ -549,13 +548,11 @@ int ip_mc_dec_group(struct in_device *in_dev, u32 addr)
                                        ip_rt_multicast_event(in_dev);
 
                                ip_ma_put(i);
-                               return 0;
+                               return;
                        }
-                       err = 0;
                        break;
                }
        }
-       return -ESRCH;
 }
 
 /* Device going down */