Re: [PATCH] gpio: mcp23s08: Trivial: Fixed coding style issues

From: Linus Walleij
Date: Fri Mar 14 2014 - 06:20:03 EST


On Wed, Mar 12, 2014 at 9:16 PM, Gerhard Sittig <gsi@xxxxxxx> wrote:

> 'sizeof' is an operator, very much like a unary minus or
> unary ampersand which neither require parentheses. So either of
> "sizeof(x)" as well as "sizeof x" are legal with regard to the C
> language. It's just that the community prefers "sizeof(x)" for
> the improved readability.

You're right, amazingly. Thanks for teaching me something new
today!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/