[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110820.110507.292184051848114840.davem@davemloft.net>
Date: Sat, 20 Aug 2011 11:05:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: rmody@...cade.com
Cc: netdev@...r.kernel.org, adapter_linux_open_src_team@...cade.com,
gkaraje@...cade.com
Subject: Re: [PATCH 04/13] bna: SKB Check and Drop Macros
From: Rasesh Mody <rmody@...cade.com>
Date: Fri, 19 Aug 2011 14:39:23 -0700
> Add macros to check and drop skb from transmit path and return.
>
> Signed-off-by: Gurunatha Karaje <gkaraje@...cade.com>
> Signed-off-by: Rasesh Mody <rmody@...cade.com>
Do not EVER create macros that have the side effect of doing
a function return.
This makes code impossible to read and audit, because it is not
possible to see just by looking at the macro invocation that the
function might be returned from what at that moment.
--
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