Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2286078pxv; Sat, 24 Jul 2021 11:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX6zZujZ8otm6K50Sd7TN+PvhRq8XwEBrmT3LE51tkVe2MaHlOEaFSKridGvxKun8GpIoF X-Received: by 2002:a05:6e02:12ab:: with SMTP id f11mr7421558ilr.200.1627149775635; Sat, 24 Jul 2021 11:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627149775; cv=none; d=google.com; s=arc-20160816; b=LwElcXKG6EQyclDzuji9AIVIVT+n4ZEDRlCHqI6/QxswfxrlSTWzqmPWwrWmF+AINx n9F9AIO4nPeCNxHEFQC4Lw1fGDvycuo2EntctCdJQGUloERMyekmJU6Z5Kxv8FGgc6v0 Y0nbL0BTmggtsoxq3tllcyEXts7xg0OxqB5dtPiBmF7BWPMich7m0QTj/bOel6DK0lu1 Vf9Vo3EmS3aS5loMr8Zb9HVYtFGIPLrD0GvUjv22KtOcSncyCWnbYVpdrg3NV1IiCPF4 1bPJpiGMb/TbGMBw43vOBd0PyCh8WPIZTErzH59HkhnBnGvWGHohIXSPUk31UA/mrr5j 51nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=CFAXOYswwIGflCWWx9fpDZl57pj1QpRpAZ3Zwc4ZdWQ=; b=Ua5diA8LCD9eJQ7tHzDKBB11LPDGAmxO7XbgZtP/tyr+THYGhCqORQjx9Jipvg1+wg S6sCYoxrbvDEya6j/aJ/T+66yn3S4ARhjtdBcLYjkMpm+/DMOOowMNIqDUa8BxAN0cKG v+OCj3GCWrypkqmxZYkKG4730ROgL3GF8o/K9QKMXypDZiLpLX64P7DwTQHGzv4C/lda 4Vl+vHCsg0OMKjyURd0uHowKI43QAzQHbP8YcYs7Mq2atii+38HF+nip3vWNh27Ukqdr 1lE3OmJ1LODdvan5yyXrsR4ulwvGjsqvJHbv8qDB/ky990hUrhAcvPZ4j6UV7VI3e0SP AjbA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay7si1376666jab.36.2021.07.24.11.02.44; Sat, 24 Jul 2021 11:02:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbhGXRVd (ORCPT + 99 others); Sat, 24 Jul 2021 13:21:33 -0400 Received: from mail-vk1-f169.google.com ([209.85.221.169]:46858 "EHLO mail-vk1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbhGXRVd (ORCPT ); Sat, 24 Jul 2021 13:21:33 -0400 Received: by mail-vk1-f169.google.com with SMTP id d15so1101977vka.13; Sat, 24 Jul 2021 11:02:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CFAXOYswwIGflCWWx9fpDZl57pj1QpRpAZ3Zwc4ZdWQ=; b=Eha/FENPwERCrkFNm34VQWOYwJD2ocYFpOgpbmoP2qv+R8V8d7GZQ9cvcNTmeQ2lSC BpL/2UaOHfM7L8AWLVrklPLU6T1PO0HY4leB24zTfvLwXDYwBqlV9EZ5VPs9HyHhU0y1 859bGVHlDRYM4xJccrqLwy6Iffig/Wx9D45oAgIVVrHyiZK3gj1DbkKYPlsJT9Sinz85 K5h9G7IPW0+CQslttwVCLYeyWYxxEoF4xW0ll/4WeXBW7C3vxgCd60ldNZ6UHMtKyJoD bz7qNEfwjiW7YennwNtiU4OTFFDL5rRYnpgsSte+OSCQwkfzc81Ejhcif5obHLQacDeZ eejQ== X-Gm-Message-State: AOAM5332GLC3lsfDFOsUSPeSsbYoktABzH444FWOb4Gdhgeor3NEbeAl 8MeJYmMLOtmP43Bt32gLxvPRKREC59uwBHOirZ2ek0nFWaA= X-Received: by 2002:a05:6122:a12:: with SMTP id 18mr7348420vkn.1.1627149724368; Sat, 24 Jul 2021 11:02:04 -0700 (PDT) MIME-Version: 1.0 References: <20210724151411.9531-1-len.baker@gmx.com> <20210724151411.9531-4-len.baker@gmx.com> In-Reply-To: <20210724151411.9531-4-len.baker@gmx.com> From: Geert Uytterhoeven Date: Sat, 24 Jul 2021 20:01:53 +0200 Message-ID: Subject: Re: [PATCH v2 3/3] staging/fbtft: Fix braces coding style To: Len Baker Cc: Greg Kroah-Hartman , Andy Shevchenko , Phil Reid , DRI Development , Linux Fbdev development list , linux-staging@lists.linux.dev, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Len, On Sat, Jul 24, 2021 at 7:44 PM Len Baker wrote: > 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 Thanks for your patch! > --- a/drivers/staging/fbtft/fbtft-core.c > +++ b/drivers/staging/fbtft/fbtft-core.c > @@ -1016,10 +1018,9 @@ int fbtft_init_display(struct fbtft_par *par) > > i = 0; > while (i < FBTFT_MAX_INIT_SEQUENCE) { > - if (par->init_sequence[i] == -3) { > - /* done */ > - return 0; > - } These braces should not be removed, due to the presence of the comment. > + if (par->init_sequence[i] == -3) > + return 0; /* done */ > + > if (par->init_sequence[i] >= 0) { > dev_err(par->info->device, > "missing delimiter at position %d\n", i); Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds