Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp448736rdh; Thu, 26 Oct 2023 06:47:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/eleyplj3iZosbkFnpNHElyN7izzbONwrL3HBY6Tu+NybglZGRTx48zzi/4f9eyQbBnZa X-Received: by 2002:a25:37c7:0:b0:d9c:ceb5:938f with SMTP id e190-20020a2537c7000000b00d9cceb5938fmr4971613yba.4.1698328044879; Thu, 26 Oct 2023 06:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698328044; cv=none; d=google.com; s=arc-20160816; b=W8z5bkqJwaTMUz3WKJ4Afx+F+VszZyIRoKeQjC2DE1SIwdd5vQR+A61Y5p8Rt8w4Wd nQ9M6BnMhCYLHVsLBmQagzixh5CMSmkBIQY+7bBPvgTCtNktvENgxAaDzdMLNV/Rll47 Sa5S4rZNxURTzcRvil4Uvst21CwdDZAROxLhJASqgYpvNA/qHJ7wCE9u0tWAlOqrJSJB mGP2W7g2C88Xv50QvCb15qgthCGYxJvGw1jSi5JmtZBsSoOV+bcp3qPP42krobA3fYSy J75ia0KX9Hub0nq5XSaKtRxBkeArSVDZqk8tvFkRRHxmVL5zSBE1VT/KTMuXw69bEvSV 9hTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=S9n8fdUMuomZpDrsqxoqTl0ThgWJwRuU8B75KmpTiCQ=; fh=WC25YkHVXFyFZGLDpSec/k1npyxIOZp/onocOUfguWQ=; b=dUysQaZApdekyqI5jcNp9LTdLP3PJpk3OE56Ta8aVHlz3k72qEBTpoS+LtOyfbmKH8 Bb7Qt2iGAVVpeho06jrWqIOIB+jGbfVZnQhbvOpscsOFqyElnAphdDxwNwDdYSRrE7dh DmsuqlTlZRiCCE1YEOm6IjVHLyNymK0Rpn2bUP43yf5P5FWmshnFhd6uq23/iwNLW1ve yU/8/SvfZg3AIghvl401RcCG/kGKcfv9uq+r0YA4QXJHT2y4wW6mFaUuhcRxQ+qRhxA1 z7OR0/IUGw4TFBpMEZJJEzb0uvMPjseq4h9POVvw2L4n2TmRa9NcUsgZECH9cXL8Uyv0 zv5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCpUpM7C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l3-20020a25cc03000000b00da03ee50637si8301211ybf.26.2023.10.26.06.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCpUpM7C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2A1EE817ABF0; Thu, 26 Oct 2023 06:47:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjJZNrQ (ORCPT + 99 others); Thu, 26 Oct 2023 09:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbjJZNrO (ORCPT ); Thu, 26 Oct 2023 09:47:14 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53751BD for ; Thu, 26 Oct 2023 06:47:12 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d9a6399cf78so823078276.0 for ; Thu, 26 Oct 2023 06:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698328031; x=1698932831; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S9n8fdUMuomZpDrsqxoqTl0ThgWJwRuU8B75KmpTiCQ=; b=MCpUpM7CtFd1Btnkh1HIhaUSCpEnpauHx760oIQliConkLYOX9efKUT96lyZIoWiVZ fTVVmVl4xdHL/H5S1eLIavWaW+4vWHHmgtKiKSu899To+qM+s+tgcxNcjoY2VEYmXmoP L0lx1M7chS5sMrz6K0xS59X7hRs3uCwpCh0hAvp/ffqQv1E/8fAtE1XcLVLAlfsuKh4v RnHok0wD4xBEVbms6KG+lJH+wucy5WAaup5qGuS6OVdRV7qLXIG/MGBSlyyk11tlDN5x pTzrOonKfnkDiM5thKG4FDzSTERdbPaHnW2ZQnqt63+svDFc5PAtOcefFz9NUq0/VDvX QNfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698328031; x=1698932831; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S9n8fdUMuomZpDrsqxoqTl0ThgWJwRuU8B75KmpTiCQ=; b=tcDPYciSB3Pob/bSWemnzqWv7TGsNgFDqzUTyif64ldwKiJe5hYTFH6XT1tyYS39/m 5mhYFLPdv10GuJ9ckoeWe2muoewE4QGKdxI/aRYec6azj936n93stMUbAxpx18s9ELP8 851P+qb10KLmLGla+t5cOJZgqbnSxzdQCeSpbQk+iWw1jZKUG4uSnw480A0w7DfqytCl q1cppTGLaSLH9DMAMGgyzOA/vN79VB1uS5N/imfG1dEtgoult/3+mXp2m6EjRvCtr+R4 kbpLpbkhpYZDUaTdf3kAPZlhT9SK45cVNdXiQ1OVcB4MGAUpzkSNIOEzbSeeGxV0zXgm WXJw== X-Gm-Message-State: AOJu0YzjTBOHkPSoxlPBG3VwUrhYmQ83AQG8TUkOTBSHLDdpJZKExuXm p7bArst/N/uvRddjVCzb5yGK8wmhIeHF65+7qLRjy9/Dp/2Vxb72 X-Received: by 2002:a5b:8c5:0:b0:da0:3ec1:f3f with SMTP id w5-20020a5b08c5000000b00da03ec10f3fmr5401782ybq.3.1698328029846; Thu, 26 Oct 2023 06:47:09 -0700 (PDT) MIME-Version: 1.0 References: <20231026-mbly-uart-v1-0-9258eea297d3@bootlin.com> <20231026-mbly-uart-v1-5-9258eea297d3@bootlin.com> In-Reply-To: <20231026-mbly-uart-v1-5-9258eea297d3@bootlin.com> From: Linus Walleij Date: Thu, 26 Oct 2023 15:46:58 +0200 Message-ID: Subject: Re: [PATCH 5/6] tty: serial: amba-pl011: unindent pl011_console_get_options function body To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Russell King , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Gregory CLEMENT , Alexandre Belloni , Thomas Petazzoni , Vladimir Kondratiev , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 06:47:22 -0700 (PDT) On Thu, Oct 26, 2023 at 12:41=E2=80=AFPM Th=C3=A9o Lebrun wrote: > The whole function body is encapsulated inside an if-condition. Reverse > the if logic and early return to remove one indentation level. > > Also turn two nested ifs into a single one at the end of the function. > > Signed-off-by: Th=C3=A9o Lebrun Reviewed-by: Linus Walleij Yours, Linus Walleij