Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3511170imm; Sun, 13 May 2018 13:06:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp16xrqsjC6vRX2QdD5XNS5wB4i93IkVcsWavpT4GXM8TWPMFHiSJhx8QAPD7JAxvsCrWmE X-Received: by 2002:a63:ba04:: with SMTP id k4-v6mr6078597pgf.338.1526241967968; Sun, 13 May 2018 13:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526241967; cv=none; d=google.com; s=arc-20160816; b=LuBwT2hZf0wUgPWHlw25TgHUs4SMNxvjtG8GRmKiYh5PCPcB+LfDKApBOkmYKyVmTz j4njzf3TxTasgR7s5UAUEM1kXCp5KIKT5ec1Ls1ZJdrhOVm3+GxIEtWYFUZ2zXCG3UZt Dvju65UmWgbLflM1bMdLT8o7h2CgTaPFoqeMMWQy/f/cy9K9zmh7QNpPdrbIoQ834hS0 g66hp4J6cxaDIISp3CxhG/q/eU3yLbMwKYIVxNrGGWOEJzFkTlA1j2/k2LYJqOi27vWH vwjQqGtAP9MnCw6/p6VYbFaU32u0MZj9E7ejnrNEu/YmjAvvMO48GD33fUsrCF9jtQEA AGKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization :content-disposition:mime-version:mail-followup-to:message-id :subject:cc:to:from:date:arc-authentication-results; bh=kq5jvocZLURa7PSeVV+RO2r+88H4ajAUPXgVqxdzcck=; b=lO5oOlL+mPVMrbf9PRKcxJ/IB0z0mX7E3z8FdEAXVVNYD8C4s53+chiWaWIBe4hNjI 4T+b1o66+SkhCJSFLTG7sZgMw2oMlR2HtwMb50aknP3H+f76ux7uhlfZmYbH4dIq4cHF T/ibQAC6tPHqJJEWa2vn6g5nw0CyWYecpqNWp2zAMfA6SyelEefATf9oVFbd5RryDFmf c2cHoeJ8eGcmbPJVJ+KZ9+grl2oGlqX3t1y+BG0GtuO75oqNE/Kih5tQtGsAIc3kXREb iOJAT9Jv/b9jvT8b0DJgMvJJR5NOPRY2ijOkibvas0HoFiV4/H9tBay/498ei2c4lPIk gAUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si3906667pgf.221.2018.05.13.13.05.53; Sun, 13 May 2018 13:06:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbeEMUFa (ORCPT + 99 others); Sun, 13 May 2018 16:05:30 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:37996 "EHLO hera.aquilenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbeEMUF3 (ORCPT ); Sun, 13 May 2018 16:05:29 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 64EC52D049; Sun, 13 May 2018 22:05:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SKDsyhn8XIki; Sun, 13 May 2018 22:05:26 +0200 (CEST) Received: from var.youpi.perso.aquilenet.fr (static-176-158-111-12.ftth.abo.bbox.fr [176.158.111.12]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DE6572CE3B; Sun, 13 May 2018 22:05:25 +0200 (CEST) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.91) (envelope-from ) id 1fHnSZ-0002tQ-0Q; Sun, 13 May 2018 11:38:31 +0200 Date: Sun, 13 May 2018 11:38:30 +0200 From: Samuel Thibault To: Greg KH Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, speakup@linux-speakup.org Subject: [PATCH] staging: speakup: Fix coding style Message-ID: <20180513093830.lwspfmjaxjixpaew@var.youpi.perso.aquilenet.fr> Mail-Followup-To: Samuel Thibault , Greg KH , w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, speakup@linux-speakup.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: I am not organized User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Samuel Thibault --- drivers/staging/speakup/buffers.c | 3 ++- drivers/staging/speakup/main.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/drivers/staging/speakup/buffers.c +++ b/drivers/staging/speakup/buffers.c @@ -78,7 +78,8 @@ void synth_buffer_add(u16 ch) if (buff_in > buffer_end) buff_in = synth_buffer; /* We have written something to the speech synthesis, so we are not - * paused any more. */ + * paused any more. + */ spk_paused = 0; } --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -68,7 +68,7 @@ int spk_punc_level, spk_reading_punc; char spk_str_caps_start[MAXVARLEN + 1] = "\0"; char spk_str_caps_stop[MAXVARLEN + 1] = "\0"; char spk_str_pause[MAXVARLEN + 1] = "\0"; -bool spk_paused = 0; +bool spk_paused; const struct st_bits_data spk_punc_info[] = { {"none", "", 0}, {"some", "/$%&@", SOME}, @@ -1782,8 +1782,7 @@ static void speakup_con_update(struct vc /* Speakup output, discard */ return; speakup_date(vc); - if (vc->vc_mode == KD_GRAPHICS && !spk_paused && spk_str_pause[0]) - { + if (vc->vc_mode == KD_GRAPHICS && !spk_paused && spk_str_pause[0]) { synth_printf("%s", spk_str_pause); spk_paused = 1; }