[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH6sp9M7R3chHA+FPG6WV5LqwPy7+TDy1P9qjcfmNAGzALhKOg@mail.gmail.com>
Date: Fri, 19 Jun 2015 11:07:33 +0200
From: Frans Klaver <fransklaver@...il.com>
To: Krzysztof Hałasa <khalasa@...p.pl>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: Re: Coding style details
Hi,
On Fri, Jun 19, 2015 at 10:35 AM, Krzysztof Hałasa <khalasa@...p.pl> wrote:
> Hi,
>
> a simple question: which style is preferred?
>
> #define REG8_1(a0) ((const u16[8]){a0, a0 + 1, a0 + 2, a0 + 3})
>
> vs
>
> #define REG8_1(a0) ((const u16[8]) {a0, a0 + 1, a0 + 2, a0 + 3})
> ^^^^^
The prescribed style is to have no space between cast and castee. So,
the top option.
Frans
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists