Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1598585rdb; Tue, 20 Feb 2024 00:43:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsBreurLpGv8K/7CBXoDjqgHk7V1aFYFtS4xX++7efpO5PlzE0HtxKJU7GWjqzBm6gagmMTsKOB08O0vAdLY/1A4bB2ub4vEJDaVCyDw== X-Google-Smtp-Source: AGHT+IGfk7hhSP9NFVt7Ui2bJoUgLBT3vto1UL9gYb9ks1HwyA/HohZ+HqcHkF8l+uHC09wChF6Q X-Received: by 2002:a05:6a00:2fda:b0:6e2:ed1d:c5c6 with SMTP id fn26-20020a056a002fda00b006e2ed1dc5c6mr6291498pfb.22.1708418596315; Tue, 20 Feb 2024 00:43:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708418596; cv=pass; d=google.com; s=arc-20160816; b=z1PKKmiU80eJIFqVqB80HCSu/vZI3YEIMqcIMTI1tNR5A1VOFBiA1BfnyfULauzJcW 0SqkBqtMMIbXbbQXqW+8DGJquChUREkCfu8nBUFY8JoKmha/pNhRQ+WjfYbvbjoXKUQb /iM3AsAzkjlsaS0wAlRM6iHh4Gj8bFBskcvjLz7HiXrGFOs1nGgrDzHdp/TuIzVaUoPU UG0AqYAO4DcqlCcvV0RRnf01qfzwTy8AT4h+phIFSnfEaOpgZzpVnjk0sMVfGdpziOQ1 bRtd73IP8BoXK6I/W0dqSsPNLUWeelLF9346aSOMnOEYmYG8Tj6lUS4pljeVfWJKRuhT 9EYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=jdi56zB9Cb62G8UiSR1KJSLyuyBuHTD77k0leckMShQ=; fh=PTH8GowQylAgllquUfd5F9+aTD/J81X4yA45rx7aNS0=; b=B7gaJKjysS08OKZKm9tFv4h/GoM46RTqysDCEqrpE99UOTFeL3BfuTLLWcpK97+ili xIdyf1IxJ4opkhEhomOL2oGolCpyABp2kAkCeUDZfwWqavsDIfUpG1F5asb9AqZWDueb ZLzfNHwJ5sVD1QpC0ewq/caj2MFW5NQU3gJ23Ca6TByjIcsGRL6kGZ/sdCxkwSof1Yt5 J08BGgEKto3IM8YGrWSZTWvsXLJsH0+RNU6OlnyyN9k870IFL/GoCqNJbByUwFZyiyom bo+NzQgDzgqG2Es+WFzdxTa8jVg3md2q1VvCeUfA82ednL6ZoVI0SSR+wtNSOLhTL/wt /43g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72590-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72590-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q12-20020a65684c000000b005dc16b88e8dsi5752777pgt.353.2024.02.20.00.43.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:43:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72590-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72590-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72590-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5CAC928586D for ; Tue, 20 Feb 2024 08:42:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 054BB5D736; Tue, 20 Feb 2024 08:42:33 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26BE25D462 for ; Tue, 20 Feb 2024 08:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708418552; cv=none; b=HImMGxwRdtIb9BXq+FV6iJ1k2s51FnKrng7da3p8NECEb8T33qGAxtLtEjzKm4Dl5NYVw46rPgjc/YC3x47ialtp3kjasA4HCNzdZkd6Yywk70S487MHHeFjxAz1gTym7Ch1lk9m4B+EKQbitlzcuk+Aih4aEbYTFw3KIlGgVc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708418552; c=relaxed/simple; bh=5i2yVe3YvLkbc1bjl/rywBySn9/ebqlo3gBQ6m35U8k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O46Nzo1xLazDjSdKmPBg3yR9YsJLSLwpMK2dx7vJWkwM+t6dJAXTAhW4tGFuiMAqOgzhGEfP8jnukflRo8skDh7jhduDyvLh8F0YDTOU9slEA6yvzBHZi8TeKbbboRJS8VBZpMPWe1QyTN0T4cQ6w4FubLVIEQJ6jmP2wy3j7Do= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rcLhn-0000H0-23; Tue, 20 Feb 2024 09:42:23 +0100 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcLhm-001oB5-CU; Tue, 20 Feb 2024 09:42:22 +0100 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 0A7C1292ECA; Tue, 20 Feb 2024 08:42:22 +0000 (UTC) Date: Tue, 20 Feb 2024 09:42:21 +0100 From: Marc Kleine-Budde To: Vincent Mailhol Cc: Oliver Hartkopp , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] can: raw: raw_getsockopt(): reduce scope of err Message-ID: <20240220-tremor-suspend-36bc012b061c-mkl@pengutronix.de> References: <20240220-raw-setsockopt-v1-1-7d34cb1377fc@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g4vopqhpjlyktekh" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --g4vopqhpjlyktekh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 20.02.2024 17:27:05, Vincent Mailhol wrote: > On Tue. 20 Feb. 2024 at 17:16, Marc Kleine-Budde wro= te: > > Reduce the scope of the variable "err" to the individual cases. This > > is to avoid the mistake of setting "err" in the mistaken belief that > > it will be evaluated later. > > > > Signed-off-by: Marc Kleine-Budde >=20 > One nitpick to remove a newline, but aside from that: >=20 > Reviewed-by: Vincent Mailhol >=20 > (as usual, I do not mind if the nitpick gets resolved while applying). Thanks for the review, fixed that while applying. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --g4vopqhpjlyktekh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEUEC6huC2BN0pvD5fKDiiPnotvG8FAmXUZeoACgkQKDiiPnot vG/JKwf9Fjdu8IgIhXwRaJizysOl76e9n79st3d0kq2yQau5Hlgw6sjOW2IoGlkS TAk1YnxkerpQSjjJ1i550qZ+kmAXFPl8Lp3DHfddcIciQYqiTxUc0iTGo/XxEQRv hxPguYeMJAsYFEqh5lGXCjxcm3sbIzkUZ5Lb2lbAPukVLa9w9gYeO4dYl+EwUwam RWlIAeOOfjOo0QCUTauv/o4P6dwjuV5dzZCI1lv/DD5G76fCblJYnIwsmoyMKrgz NFeNLpixKfv0vAPrvl67GvuJEw0YGWJJMFbu2K9i/Pu6+2BIprqPgRwB7PA5yJES GBx7BoEa5YKFglY59+KRtBNthNfX4w== =boQJ -----END PGP SIGNATURE----- --g4vopqhpjlyktekh--