[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1273769886.21514.72.camel@Joe-Laptop.home>
Date: Thu, 13 May 2010 09:58:06 -0700
From: Joe Perches <joe@...ches.com>
To: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] drivers/net: Remove unnecessary returns from
void function()s
On Tue, 2010-05-11 at 12:30 -0700, Joe Perches wrote:
> diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
> index 2aa3367..02497bc 100644
> --- a/drivers/net/bonding/bonding.h
> +++ b/drivers/net/bonding/bonding.h
> @@ -368,15 +368,12 @@ void bond_unregister_ipv6_notifier(void);
> #else
> static inline void bond_send_unsolicited_na(struct bonding *bond)
> {
> - return;
> }
> static inline void bond_register_ipv6_notifier(void)
> {
> - return;
> }
> static inline void bond_unregister_ipv6_notifier(void)
> {
> - return;
> }
> #endif
fyi: Patrick McHardy prefers null statement void functions to
keep the return.
There are some more removals of return like this in the patch.
If a new patch should be generated, do tell.
--
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