linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB: serial: mos7840: Prefer 'unsigned int' to bare use of 'unsigned'
@ 2019-05-16 13:07 parna.naveenkumar
  2019-05-17  7:42 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: parna.naveenkumar @ 2019-05-16 13:07 UTC (permalink / raw)
  To: johan, gregkh; +Cc: linux-usb, linux-kernel, Naveen Kumar Parna

From: Naveen Kumar Parna <parna.naveenkumar@gmail.com>

This fixes checkpatch.pl warning "WARNING: Prefer 'unsigned int' to
bare use of 'unsigned'".

Signed-off-by: Naveen Kumar Parna <parna.naveenkumar@gmail.com>
---
 drivers/usb/serial/mos7840.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index a698d46ba773..a610af4dea3f 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1682,7 +1682,7 @@ static void mos7840_change_port_settings(struct tty_struct *tty,
 	struct moschip_port *mos7840_port, struct ktermios *old_termios)
 {
 	int baud;
-	unsigned cflag;
+	unsigned int cflag;
 	__u8 lData;
 	__u8 lParity;
 	__u8 lStop;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] USB: serial: mos7840: Prefer 'unsigned int' to bare use of 'unsigned'
  2019-05-16 13:07 [PATCH] USB: serial: mos7840: Prefer 'unsigned int' to bare use of 'unsigned' parna.naveenkumar
@ 2019-05-17  7:42 ` Johan Hovold
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2019-05-17  7:42 UTC (permalink / raw)
  To: parna.naveenkumar; +Cc: johan, gregkh, linux-usb, linux-kernel

On Thu, May 16, 2019 at 06:37:59PM +0530, parna.naveenkumar@gmail.com wrote:
> From: Naveen Kumar Parna <parna.naveenkumar@gmail.com>
> 
> This fixes checkpatch.pl warning "WARNING: Prefer 'unsigned int' to
> bare use of 'unsigned'".

Please don't run checkpatch.pl on code that already in the kernel
(possibly with the exception of staging). Use it on your own patches
before you submit them if you want, and even then don't blindly follow
what checkpatch says.

Minor coding style issues are better left alone to avoid adding noise
and making code forensic and backports harder.

And in this case, there's not even anything wrong with the current code.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-17  7:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 13:07 [PATCH] USB: serial: mos7840: Prefer 'unsigned int' to bare use of 'unsigned' parna.naveenkumar
2019-05-17  7:42 ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).