Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2277164pxv; Sat, 24 Jul 2021 10:46:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk6/DJxMWfdJUyguwpsTSjqUzQzo8AY7CW/Wcon37hAIucnLQkxSwY1mq6RPJmoFkMxTf2 X-Received: by 2002:a05:6638:58e:: with SMTP id a14mr9191529jar.81.1627148781985; Sat, 24 Jul 2021 10:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627148781; cv=none; d=google.com; s=arc-20160816; b=x0jYkS/dN8dmxyR6PhmPepm1maDYKTRHO9kq2LxJkkaYxMl7HHPBMiCBg50ixPTJ+r 2g/kRezCmBdM40lMtCYfWEczxIi/DqDoMQZeZWn+6kjPsA/5F1ux8M1QALW3L/peoob8 hL2V710thcHT3umZx+9KqTN6MUiKDsuWvaEy98QOG/dBZYV32LfcxQVtZEzsTDWhWh2Q TGH+nyXvOyPzBEFN6zWNF7EaEkqHXw+SSWA7wQquN5zjxFyHHTbE2Dx8x0H8/2M5vw68 Cvnfp8iXHnpQ9YST4dZ/+8Y8YvIZF7PX3kCsgbreULSJnCibMSyRblZU/XG0LN/J3rpM VKZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=97LVZhAQ89WGyEx53Zs38bBgcJs7k8sulXt4kYzNhv0=; b=lsiwVrhbbTzwA2w3dOA7v1bhKdjqYyILKUGifSlOY/S9d5kBTO/vHP30kLnjFmf1r3 PadzvtUogI70ncnnQswSGKgDQ/g5fsvhgIZ2ctWagmnVjBmLps9iRhc0shWhfJLJSoZQ cctzKuP9+fDwDMg4XfmX4/Ayo53u44gLNkTa8C5VtnQM13NldXOOBKI/bxJubo5pfLmh shf07bHpEzeln5Rh0yaOGZT7npcIbmkwWa7+JCpa+zwJLTYj8KjT/wUCM6xIvRNDC5CN ii0QEqu9PGkrJyD6HihKHDT5YETM8oJlUWCfgsaQB5wA8gPnvX6o8mjQdZXkNsUxRZXq 00bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=NFNUK8e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si31936508ilt.138.2021.07.24.10.46.08; Sat, 24 Jul 2021 10:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=NFNUK8e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbhGXRE0 (ORCPT + 99 others); Sat, 24 Jul 2021 13:04:26 -0400 Received: from mout.gmx.net ([212.227.15.15]:59081 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbhGXREY (ORCPT ); Sat, 24 Jul 2021 13:04:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627148677; bh=NnnKncfAnaFeKpuZRfNKoEnQZQQS40lYryGaD8rwMk4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NFNUK8e1lGKlLsZ78wPfP5vHKXND1wmC2AI4RH71M5Ie9Y8wYdWHqJVuRDtIJ3wW3 VXs2CX4KUZKOYnpaq3xLdSs4YyW7qx6gNhO3e4eHKLo/QnqC/AzUNWViHh7ztLdfXa a3TfKXl//kPVXrValL65VXLVmtUKycHLbFO8vyjI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.228.41]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1Ml6mE-1lMEif0gvs-00lTqs; Sat, 24 Jul 2021 19:44:37 +0200 From: Len Baker To: Greg Kroah-Hartman Cc: Len Baker , Andy Shevchenko , Phil Reid , Geert Uytterhoeven , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] staging/fbtft: Fix braces coding style Date: Sat, 24 Jul 2021 17:14:11 +0200 Message-Id: <20210724151411.9531-4-len.baker@gmx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210724151411.9531-1-len.baker@gmx.com> References: <20210724151411.9531-1-len.baker@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Lxq6kiLtjzFc7OrUMkOeAtgYvYuYKRc/giZKldt3BoFUT8h46VN Kg9FIPsCHHoEzU1Mpx9okxfyNGfBWPsPHYWimuPRdKM7YMgx2f/hyOp2LoOaeTQQ39tB119 r00lutgbYittzltAdnF6QCZZMkyT5+zF0brw7VKPt3rZbRv5z9hwxA/m471V2iAF4Ivk4re fJ9snb6LaTghFsDzNuZKg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:+WwuL9lnI14=:Lg8CcfCZ7rwXHqQl323hZy fGlFde99fZWlaom5py+XLvoegd+qdqmZEnaZcZfjaZXvCeQfq1VcgF/kPHuf3DX7+Dnc+fEYM GF5J3HJvxIuQB/LKFn2AYmrVe+k7eP8fdhESjiwle6j2jlpdvGJkY53L22oeIQ9pjNVzIssJR lTeRxVTZoFtv7PJXi4frv7WYleVjSsoS+aMSpp7psFbCVzS0eR36Fl61cRvfhokOfM3YVs71d TSUNWgcaTPd2gGx/iffDIqzBPfpZfSPZ57NqUjGggEfbgwrNQyh7zBArIEtgH6Qdl/hRT32PJ JXoI9p0V8gNiUjVGp1f1s9Uz/+ibpDt7QxC6XeQ+0bo1/uw6tqnO3lVGaVIHVWKq7VzeNY4+d 2OpnbFIPjtMG4G37mboGXULo2eh2u2o6A0XFu2pYtyK0J8GAyB5aIjgh7s9SVTV94dYXhLCBv 0miwN3QGGRxpnD5Kxw+0pfJfAJubKiXXXruRCsawp5sJ1aqNmI/GellC7vWzdjvW3M7JFhBxV D+LTiSfdu6TIqkaju1DEGsoHLejU9iO+jg2GOwpf4tsTVfz1rkaaYRT/YilFHbaxeuENaDVUZ KlfGAn9Q7eBgvNoXqYPJUM5Pt6dN/Eo6NbpkJs5P7okfSgpPdP2YqDk9OMZRSdn0kNciNMdl+ MXvkoUTAtJe1fy93gvr7MVIvwmN5QCaxcMZI9NMCETYMV7S45tDl+wEZvFEdBP9aSuXC0ughK 9odmeqPINVGQWl1Vd5BMuvN1jf1ucvBSmD+b+XDCaA8oPJGqNg94oTA5jI2lbELcTe+UEUC4k 2VZZkSasNSfjuaS0Qw9UY62tOGme/eW2xzVXIUdkAfKzSdOYg5SspQsEp7tl/gKC640W26ivK +3GDojDJUFZNf5dAvtRwplJIKRuG3mo4RXhFXDekbKGom+ybJq+s19ZFJRtYW30q99dg66Oqn NVZ/95qRcpoIbhYb87SLwP2G1O9gMhadg3TgGQpfaJZstM6uK6dGjVuaN6h/ixb7IWFI5k/Nl 7wG2olAL5nGf7iJQ2NFtfHQ9f0MCh6jDVlSoiwy4qZmjA2XnlK5rUjsDTiI6vIPDskEW+/YdI DBKweJCMhiMW2bjwr0ar/okB4t5uJ6NbzgQ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add braces to the "for" loop and remove braces from the "if" statement. This way the kernel coding style is followed. Signed-off-by: Len Baker =2D-- drivers/staging/fbtft/fbtft-core.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fb= tft-core.c index cc2bee22f7ad..d87792649efe 100644 =2D-- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -1003,9 +1003,11 @@ int fbtft_init_display(struct fbtft_par *par) } /* make sure stop marker exists */ - for (i =3D 0; i < FBTFT_MAX_INIT_SEQUENCE; i++) + for (i =3D 0; i < FBTFT_MAX_INIT_SEQUENCE; i++) { if (par->init_sequence[i] =3D=3D -3) break; + } + if (i =3D=3D FBTFT_MAX_INIT_SEQUENCE) { dev_err(par->info->device, "missing stop marker at end of init sequence\n"); @@ -1016,10 +1018,9 @@ int fbtft_init_display(struct fbtft_par *par) i =3D 0; while (i < FBTFT_MAX_INIT_SEQUENCE) { - if (par->init_sequence[i] =3D=3D -3) { - /* done */ - return 0; - } + if (par->init_sequence[i] =3D=3D -3) + return 0; /* done */ + if (par->init_sequence[i] >=3D 0) { dev_err(par->info->device, "missing delimiter at position %d\n", i); =2D- 2.25.1