Re: [PATCH 1/2] Staging: sm750fb: fix brace coding style issues

From: Sudip Mukherjee
Date: Fri Apr 10 2015 - 01:48:11 EST


On Fri, Apr 10, 2015 at 12:12:15AM +0200, Robin Karlsson wrote:
> This is a patch to sm750fb that fixes brace coding style errors and warnings found by checkpatch.pl
Try to limit this commit message to 72 char.

You should usually use scripts/get_maintainer.pl to see where to send
the mail.
>
> Signed-off-by: Robin Karlsson <s.r.karlsson@xxxxxxxxx>
> ---
<snip>
> @@ -217,19 +214,17 @@ void hw_cursor_setData2(struct lynx_cursor * cursor,
> else
> opr = mask & color;
>
> - for(j=0;j<8;j++)
> - {
> + for(j=0;j<8;j++) {
>
> - if(opr & (0x80 >> j))
> - { //use fg color,id = 2
> + if(opr & (0x80 >> j)) { //use fg color,id = 2
this is introducing new checkpatch error.
Error: trailing statements should be on next line

regards
sudip
> data |= 2 << (j*2);
--
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/