Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1719622

[PATCH] USB: serial: ti_usb_3410_5052: remove unnecessary brace

From Himanshu Jha <himanshujha199640@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] USB: serial: ti_usb_3410_5052: remove unnecessary brace
Date 2017-08-25 00:30 +0200
Message-ID <ui8Nr-49D-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Braces are not required for single statement blocks.
Issue found using checkpatch.pl

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
---
 drivers/usb/serial/ti_usb_3410_5052.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c
index 8fc3854..1980d6d 100644
--- a/drivers/usb/serial/ti_usb_3410_5052.c
+++ b/drivers/usb/serial/ti_usb_3410_5052.c
@@ -822,9 +822,8 @@ static int ti_write(struct tty_struct *tty, struct usb_serial_port *port,
 {
 	struct ti_port *tport = usb_get_serial_port_data(port);
 
-	if (count == 0) {
+	if (count == 0)
 		return 0;
-	}
 
 	if (!tport->tp_is_open)
 		return -ENODEV;
-- 
2.7.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] USB: serial: ti_usb_3410_5052: remove unnecessary brace Himanshu Jha <himanshujha199640@gmail.com> - 2017-08-25 00:30 +0200

csiph-web