From fd40866b64d576c490cc17182ffda1d68e8a19e7 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 17 Oct 2007 21:25:32 -0700 Subject: [PATCH] --- yaml --- r: 71282 b: refs/heads/master c: aaf70ec7fde2321281b2a49c7c9f881c90d0d208 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/ipv6/addrconf.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 6771c6a7056f..17fbe15e10ac 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16910b9829797cda4032fbc84e5292ac7b4474f7 +refs/heads/master: aaf70ec7fde2321281b2a49c7c9f881c90d0d208 diff --git a/trunk/net/ipv6/addrconf.c b/trunk/net/ipv6/addrconf.c index edf06ca34749..348bd8d06112 100644 --- a/trunk/net/ipv6/addrconf.c +++ b/trunk/net/ipv6/addrconf.c @@ -255,11 +255,6 @@ static void addrconf_mod_timer(struct inet6_ifaddr *ifp, static int snmp6_alloc_dev(struct inet6_dev *idev) { - int err = -ENOMEM; - - if (!idev || !idev->dev) - return -EINVAL; - if (snmp_mib_init((void **)idev->stats.ipv6, sizeof(struct ipstats_mib), __alignof__(struct ipstats_mib)) < 0) @@ -280,7 +275,7 @@ static int snmp6_alloc_dev(struct inet6_dev *idev) err_icmp: snmp_mib_free((void **)idev->stats.ipv6); err_ip: - return err; + return -ENOMEM; } static void snmp6_free_dev(struct inet6_dev *idev)