<div dir="ltr">Hi,<div><p>Thank you for your feedback on my patch submission.<br>I have reviewed the mailing list traffic and noted that the last patch addressing the same coding style issue was submitted in April. Given this timeframe, I believed it was appropriate to submit my patch to contribute to the resolution of the ongoing issue.<br>As this is my first contribution to the Linux kernel, I want to ensure that my submission aligns with the requirements. I would greatly appreciate your guidance on how to improve my patch and avoid duplicating previous efforts.<br><br>Thank you for your time and consideration.</p><p>Best regards,<br>Riyan Dhiman</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2024 at 1:13 PM Greg KH <<a href="mailto:gregkh@linuxfoundation.org">gregkh@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jul 23, 2024 at 11:33:11AM +0530, Riyan Dhiman wrote:<br>
> Adhere to Linux kernel coding style.<br>
> <br>
> Reported by checkpatch:<br>
> <br>
> CHECK: Unnecessary parentheses around 'devcode != 0x0000'<br>
> CHECK: Unnecessary parentheses around 'devcode != 0x9320'<br>
> CHECK: Unnecessary parentheses around 'par->info->var.xres == 320'<br>
> CHECK: Unnecessary parentheses around 'par->info->var.yres == 240'<br>
> CHECK: Unnecessary parentheses around 'par->spi->bits_per_word == 8'<br>
> CHECK: Unnecessary parentheses around '!txbuflen'<br>
> CHECK: Unnecessary parentheses around 'bpp > 8'<br>
> ERROR: space prohibited before that close parenthesis ')'<br>
> <br>
> Signed-off-by: Riyan Dhiman <<a href="mailto:riyandhiman14@gmail.com" target="_blank">riyandhiman14@gmail.com</a>><br>
> ---<br>
> drivers/staging/fbtft/fb_ili9320.c | 2 +-<br>
> drivers/staging/fbtft/fb_ra8875.c | 2 +-<br>
> drivers/staging/fbtft/fbtft-bus.c | 6 +++---<br>
> drivers/staging/fbtft/fbtft-core.c | 2 +-<br>
> 4 files changed, 6 insertions(+), 6 deletions(-)<br>
> <br>
> diff --git a/drivers/staging/fbtft/fb_ili9320.c b/drivers/staging/fbtft/fb_ili9320.c<br>
> index 0be7c2d51548..409b54cc562e 100644<br>
> --- a/drivers/staging/fbtft/fb_ili9320.c<br>
> +++ b/drivers/staging/fbtft/fb_ili9320.c<br>
> @@ -37,7 +37,7 @@ static int init_display(struct fbtft_par *par)<br>
> devcode = read_devicecode(par);<br>
> fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "Device code: 0x%04X\n",<br>
> devcode);<br>
> - if ((devcode != 0x0000) && (devcode != 0x9320))<br>
> + if (devcode != 0x0000 && devcode != 0x9320)<br>
> dev_warn(par->info->device,<br>
> "Unrecognized Device code: 0x%04X (expected 0x9320)\n",<br>
> devcode);<br>
> diff --git a/drivers/staging/fbtft/fb_ra8875.c b/drivers/staging/fbtft/fb_ra8875.c<br>
> index 398bdbf53c9a..ce305a0bea48 100644<br>
> --- a/drivers/staging/fbtft/fb_ra8875.c<br>
> +++ b/drivers/staging/fbtft/fb_ra8875.c<br>
> @@ -50,7 +50,7 @@ static int init_display(struct fbtft_par *par)<br>
> <br>
> par->fbtftops.reset(par);<br>
> <br>
> - if ((par->info->var.xres == 320) && (par->info->var.yres == 240)) {<br>
> + if (par->info->var.xres == 320 && par->info->var.yres == 240) {<br>
> /* PLL clock frequency */<br>
> write_reg(par, 0x88, 0x0A);<br>
> write_reg(par, 0x89, 0x02);<br>
> diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c<br>
> index 3d422bc11641..02d7dbd38678 100644<br>
> --- a/drivers/staging/fbtft/fbtft-bus.c<br>
> +++ b/drivers/staging/fbtft/fbtft-bus.c<br>
> @@ -62,9 +62,9 @@ out: \<br>
> } \<br>
> EXPORT_SYMBOL(func);<br>
> <br>
> -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )<br>
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8,)<br>
> define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)<br>
> -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )<br>
> +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16,)<br>
> <br>
> void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)<br>
> {<br>
> @@ -85,7 +85,7 @@ void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)<br>
> if (len <= 0)<br>
> return;<br>
> <br>
> - if (par->spi && (par->spi->bits_per_word == 8)) {<br>
> + if (par->spi && par->spi->bits_per_word == 8) {<br>
> /* we're emulating 9-bit, pad start of buffer with no-ops<br>
> * (assuming here that zero is a no-op)<br>
> */<br>
> diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c<br>
> index 8e2fd0c0fee2..53b104559502 100644<br>
> --- a/drivers/staging/fbtft/fbtft-core.c<br>
> +++ b/drivers/staging/fbtft/fbtft-core.c<br>
> @@ -666,7 +666,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,<br>
> txbuflen = 0;<br>
> <br>
> #ifdef __LITTLE_ENDIAN<br>
> - if ((!txbuflen) && (bpp > 8))<br>
> + if (!txbuflen && bpp > 8)<br>
> txbuflen = PAGE_SIZE; /* need buffer for byteswapping */<br>
> #endif<br>
> <br>
> -- <br>
> 2.39.2<br>
> <br>
> <br>
<br>
Hi,<br>
<br>
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him<br>
a patch that has triggered this response. He used to manually respond<br>
to these common problems, but in order to save his sanity (he kept<br>
writing the same thing over and over, yet to different people), I was<br>
created. Hopefully you will not take offence and will fix the problem<br>
in your patch and resubmit it so that it can be accepted into the Linux<br>
kernel tree.<br>
<br>
You are receiving this message because of the following common error(s)<br>
as indicated below:<br>
<br>
- You sent a patch that has been sent multiple times in the past, and is<br>
identical to ones that has been recently rejected. Please always look<br>
at the mailing list traffic to determine if you are duplicating other<br>
people's work.<br>
<br>
If you wish to discuss this problem further, or you have questions about<br>
how to resolve this issue, please feel free to respond to this email and<br>
Greg will reply once he has dug out from the pending patches received<br>
from other developers.<br>
<br>
thanks,<br>
<br>
greg k-h's patch email bot<br>
</blockquote></div>