[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120822223312.GB11141@1984>
Date: Thu, 23 Aug 2012 00:33:12 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Jean Sacren <sakiwit@...il.com>
Cc: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] ipv4/netfilter: remove unnecessary goto
statement for error recovery
On Sun, Aug 19, 2012 at 07:11:32PM -0600, Jean Sacren wrote:
> Usually it's a good practice to use goto statement for error recovery
> when initializing the module. This approach could be an overkill if:
>
> 1) there is only one fail case;
> 2) success and failure use the same return statement.
>
> For a cleaner approach, remove the unnecessary goto statement and
> directly implement error recovery.
Applied, thanks Jean.
--
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