Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbdHXWVl (ORCPT ); Thu, 24 Aug 2017 18:21:41 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38290 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753335AbdHXWVk (ORCPT ); Thu, 24 Aug 2017 18:21:40 -0400 From: Himanshu Jha To: johan@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Himanshu Jha Subject: [PATCH] USB: serial: ti_usb_3410_5052: remove unnecessary brace Date: Fri, 25 Aug 2017 03:51:19 +0530 Message-Id: <1503613279-29468-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 722 Lines: 25 Braces are not required for single statement blocks. Issue found using checkpatch.pl Signed-off-by: Himanshu Jha --- 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