From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753278AbbIEN3u (ORCPT ); Sat, 5 Sep 2015 09:29:50 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34985 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752763AbbIEN3G (ORCPT ); Sat, 5 Sep 2015 09:29:06 -0400 From: Shraddha Barke To: Greg Kroah-Hartman , Oleg Drokin , linux-kernel@vger.kernel.org, Greg Donald , Joe Perches Cc: Shraddha Barke Subject: [PATCH 09/10] Staging: speakup: Remove braces for single statement blocks Date: Sat, 5 Sep 2015 18:58:27 +0530 Message-Id: <1441459708-2633-9-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441459708-2633-1-git-send-email-shraddha.6596@gmail.com> References: <1441459708-2633-1-git-send-email-shraddha.6596@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke --- drivers/staging/speakup/speakup_dectlk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/speakup/speakup_dectlk.c b/drivers/staging/speakup/speakup_dectlk.c index b5a23d4..09063b8 100644 --- a/drivers/staging/speakup/speakup_dectlk.c +++ b/drivers/staging/speakup/speakup_dectlk.c @@ -291,10 +291,9 @@ static void do_catch_up(struct spk_synth *synth) static void synth_flush(struct spk_synth *synth) { - if (in_escape) { + if (in_escape) /* if in command output ']' so we don't get an error */ spk_serial_out(']'); - } in_escape = 0; is_flushing = 1; spk_serial_out(SYNTH_CLEAR); -- 2.1.4