Re: [PATCHv3 5/5] [NET] dsa: add support for the Marvell 88E6060 switch chip

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andy Fleming
Date: Wednesday, October 8, 2008 - 1:20 pm

On Wed, Oct 8, 2008 at 3:49 AM, Lennert Buytenhek
<buytenh@wantstofly.org> wrote:


I agree with Trent, it only increases readability in the sense that
you have to read less when scanning over the code.  To me, that is the
least important sort of readability.  This sort of macro just creates
hidden traps.  I know it's annoying to check that return value every
time, but that's why we get paid the big bucks.  ;)

If, for some reason, the community feels this is the right way to go,
at *least* rename the macro to make it clear that it returns on an
error, and make ds an explicit parameter.

Andy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCHv3 5/5] [NET] dsa: add support for the Marvell 8 ..., Andy Fleming, (Wed Oct 8, 1:20 pm)