Thread (61 messages) read the whole thread 61 messages, 7 authors, 2012-09-06

Re: [net-next 10/13] igb: Tidy up wrapping for CONFIG_IGB_PTP.

From: Richard Cochran <richardcochran@gmail.com>
Date: 2012-08-23 18:03:59

On Thu, Aug 23, 2012 at 05:40:01PM +0000, Vick, Matthew wrote:
quoted
Better would be to drop of the pendantic #endif /*CONFIG_FOO*/ stuff.
It is just churn.

Thanks,
Richard
I'm willing to drop it, but I would like to drop it universally in the driver if that's the case. Is that acceptable? There's no overly long or complex wrapping section in the driver that I think merits being sloppy with the end comments.
Well, I don't know about the other cases.

drivers/net/ethernet/intel/igb$ grep \#endif *.c | grep -v CONFIG | wc -l
28

drivers/net/ethernet/intel/igb$ grep \#endif *.c | grep CONFIG | wc -l
8

(none of these are for _IGB_PTP)

Having #endif comments is useful when it makes the code more clear. It
is a matter of taste, but I do think having such comments for just two
lines in between is ugly and silly.

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help