[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150811.110833.1381838590302139426.davem@davemloft.net>
Date: Tue, 11 Aug 2015 11:08:33 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dsa@...ulusnetworks.com
Cc: netdev@...r.kernel.org, shm@...ulusnetworks.com,
roopa@...ulusnetworks.com, gospo@...ulusnetworks.com,
jtoppins@...ulusnetworks.com, nikolay@...ulusnetworks.com,
ddutt@...ulusnetworks.com, hannes@...essinduktion.org,
nicolas.dichtel@...nd.com, stephen@...workplumber.org,
hadi@...atatu.com, ebiederm@...ssion.com, svaidya@...cade.com
Subject: Re: [PATCH net-next 1/9] net: Introduce VRF related flags and
helpers
From: David Ahern <dsa@...ulusnetworks.com>
Date: Mon, 10 Aug 2015 11:50:28 -0600
> +static inline int vrf_dev_table(const struct net_device *dev)
> +{
> + int tb_id = 0;
> +
> + rcu_read_lock();
> + tb_id = vrf_dev_table_rcu(dev);
> + rcu_read_unlock();
> +
> + return tb_id;
> +}
The initialization of "tb_id" to zero in the variable declaration is
unnecessary, please remove it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists