Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1939926rdb; Tue, 5 Sep 2023 09:20:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQP7ALV1iqzJ30hmz6oIernGnAR6WmLgpEq0zz0jO9QSMgnz1Oq2niHeiRZkqLzfp4zwJ9 X-Received: by 2002:a17:906:209e:b0:9a1:c44d:4d37 with SMTP id 30-20020a170906209e00b009a1c44d4d37mr278105ejq.19.1693930809011; Tue, 05 Sep 2023 09:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930808; cv=none; d=google.com; s=arc-20160816; b=xlllO8rbiTiSRsjHu0rLYATduCteYUZnShvB3GLucwppj0dxbKhvRW4cBT7hDYlcwm AiJPY+FH0ACaQqsfGk3maXTJWTtwyTwp3q5zC6VswcsMzyGbdRQJ6Z3awOW+Nw1LySEu 8bBV0oyASrubD5XHkVa5Y1dB0n6nqWSxdWDoARfSUbArULKEsxNH2rhAtxufljSV+EJN PqvnQcBMXcAaqaLdMcgwJJc3SauI8Kpk2EtGnyGQu77TwUgtLgdhvjzCtOlQVHGkb/S2 o1DCuV/NQwi1D73SiT53yOlW+Fbr85CYTqLTR4IQTuf/zUpwin3gPPdjKzwEq1rq/S01 lBSw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=21vuDQkYN5HC3HH5PCAvjZ9MT2ScmKbgMXvif2eGyRI=; fh=5FwQqGeO93zwcrxTN8krQWd+Y9v7AL5cQLuchf2Q+UM=; b=cj8FDT1QbreMZR4QGlQ0HNMXaBzUiJN0mxJ5eFftdUynhYv5JbiWMDnHEh4U2N61pv /uSG94kkSsGvAtx9m/KnncmD0iCZbkHSowIHExynFNlqivDzmcoQJ6LGEaOma4BfAZa5 JRY30G71yA9xIXqyRqHA59TTI5VWDHQvj6ZvPK3NM6I7VmH/wwrxWi0uOrxTCqa9fPKU B+7KeaaK8csp6hGtF+sLoI7MT7yzk3IyRBbYH8oOQRtH1ttOAQqnPVMcJ+rKJ307GpKK Lkub8mCb5Jjx6l5Jef1GWC/Dvy4aacTgrCHMTCuFasRI8lJAnAK0rJ5DAgptvv82g+7r Oj1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vrsb3Hdk; dkim=neutral (no key) header.i=@suse.de header.b=xeTwpyDP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz9-20020a170906cd0900b009a1c2fcdce2si8183358ejb.154.2023.09.05.09.20.02; Tue, 05 Sep 2023 09:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vrsb3Hdk; dkim=neutral (no key) header.i=@suse.de header.b=xeTwpyDP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344286AbjIALMX (ORCPT + 9 others); Fri, 1 Sep 2023 07:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjIALMX (ORCPT ); Fri, 1 Sep 2023 07:12:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9E4D7; Fri, 1 Sep 2023 04:12:20 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 084711F45E; Fri, 1 Sep 2023 11:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1693566739; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=21vuDQkYN5HC3HH5PCAvjZ9MT2ScmKbgMXvif2eGyRI=; b=vrsb3HdkX5gouZ4P8zcvHlV2cZIsv+dNzECBrGkdcW6W7GnQZakRswSiYqVrZlfsNexdWd ZSzlne9iEb4Je8UVnNIyaBqcYMeTwPgMfVKSeu0c+barp9InOsuLWm3tDkpfWh2SrVjYo2 tyMMZe8MbzrieNUT/1vlQNCIGnZEtBM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1693566739; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=21vuDQkYN5HC3HH5PCAvjZ9MT2ScmKbgMXvif2eGyRI=; b=xeTwpyDPcCIgV5RoyypBcBKNb8iBT70Q1LBkKl/GhrIHvwTbegeyTWqOXVVkDfp15yXE52 t5/K11hX0hLzL/BA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BB6BD13582; Fri, 1 Sep 2023 11:12:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Px4uLBLH8WR3eAAAMHmgww (envelope-from ); Fri, 01 Sep 2023 11:12:18 +0000 Date: Fri, 1 Sep 2023 13:12:17 +0200 From: Jean Delvare To: Ilpo =?UTF-8?B?SsOkcnZpbmVu?= Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Andi Shyti , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/14] I2C: nforce2: Do PCI error check on own line Message-ID: <20230901131217.139c0cce@endymion.delvare> In-Reply-To: <20230824132832.78705-9-ilpo.jarvinen@linux.intel.com> References: <20230824132832.78705-1-ilpo.jarvinen@linux.intel.com> <20230824132832.78705-9-ilpo.jarvinen@linux.intel.com> Organization: SUSE Linux X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Aug 2023 16:28:26 +0300, Ilpo J=C3=A4rvinen wrote: > Instead of a if condition with a line split, use the usual error > handling pattern with a separate variable to improve readability. >=20 > No functional changes intended. >=20 > Signed-off-by: Ilpo J=C3=A4rvinen > --- > drivers/i2c/busses/i2c-nforce2.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nf= orce2.c > index 777278386f58..38d203d93eee 100644 > --- a/drivers/i2c/busses/i2c-nforce2.c > +++ b/drivers/i2c/busses/i2c-nforce2.c > @@ -327,8 +327,8 @@ static int nforce2_probe_smb(struct pci_dev *dev, int= bar, int alt_reg, > /* Older incarnations of the device used non-standard BARs */ > u16 iobase; > =20 > - if (pci_read_config_word(dev, alt_reg, &iobase) > - !=3D PCIBIOS_SUCCESSFUL) { > + error =3D pci_read_config_word(dev, alt_reg, &iobase); > + if (error !=3D PCIBIOS_SUCCESSFUL) { > dev_err(&dev->dev, "Error reading PCI config for %s\n", > name); > return -EIO; Reviewed-by: Jean Delvare Thanks, --=20 Jean Delvare SUSE L3 Support