Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp2378231rdb; Mon, 28 Aug 2023 02:22:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXdLpYGT9s9eYp6gKQ3Hzq/lBhGGLyXZBPGAJEmXJGXD0MhXO+sXs+TaUJZcbGY+doYBEs X-Received: by 2002:a05:6358:5286:b0:134:f0c7:90ae with SMTP id g6-20020a056358528600b00134f0c790aemr28182651rwa.5.1693214576343; Mon, 28 Aug 2023 02:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693214576; cv=none; d=google.com; s=arc-20160816; b=yyGWq5fH/CCYLN/US/QEzKqQFsa4ncaCDEqwkJEunV7Ymsrj5MOT0V616SRerRDqxc BZlGXjGjOhztvK4wmvPVGuDVFxQB+XtXllyXZxVKbgXcYamvfekIX9I2giYRS8KDJ6Nu Zb7qTnb8CN+sS8gKQAI8PNXuqSUHhUyjdOuVHADWEx+xv6XBGOLKn3PwJ67gwnjBZl97 CHleiOQ7dkvBWcjxRSLtObOJ6m6O9HkLHeZNiKshXBXDsXwBuSBWqKnEbVa4kWnwqq0k armr9rSxtLyP9H6LWjbeqTIOsj00g2z0iYp01yvNILFe1UuZ++epwIZFKFTgEKe3/5Xv 1/5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rzH/u2YFBzu/iqgoxTyH4N9vdYw0THLattBwS5W9cCo=; fh=5OzeQcfyub5BZbBsqARkc/SNRL7shv0LF07CNd4yRH0=; b=w+hWwL3bDG9oICik4TK5Z9xHeBO3gAft7+toJwwicK/zzFbL/JAsrYfWy72EkUSJFL uw7vXI8qgJAmNvoGTBrYLGrRjVEEoIpFBn84twstcPd9PulZTOZ+PlFwqJvmNX29zyaY LkRzZNJFXY4UJvgT1twkyML2BCtvlGSSCvFb339cO+vhrTQJU07w1Hw8TifBieieKjzC 5NY+CfXMP3Y9j2XGWnPIsvhZhbNfApQfyM5EBuEhmkkhixxxUmtRnXt5J1/DJXkLfbuA ocsYqHrSD3TS0eOuP0cyzD/nYLH+vRWTl+BRu62qXg1+JgRZphxy8wGinzuzTLR5I0hp Y4ZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a72-20020a63904b000000b005651147ebfdsi7120793pge.127.2023.08.28.02.22.27; Mon, 28 Aug 2023 02:22:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbjH1JTa (ORCPT + 99 others); Mon, 28 Aug 2023 05:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjH1JSz (ORCPT ); Mon, 28 Aug 2023 05:18:55 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 30031107; Mon, 28 Aug 2023 02:18:52 -0700 (PDT) Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1qaYOX-0004JP-00; Mon, 28 Aug 2023 11:18:49 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 43C5BC01A3; Mon, 28 Aug 2023 11:10:59 +0200 (CEST) Date: Mon, 28 Aug 2023 11:10:59 +0200 From: Thomas Bogendoerfer To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Andi Shyti , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/8] MIPS: TXx9: Do PCI error checks on own line Message-ID: References: <20230827133705.12991-1-ilpo.jarvinen@linux.intel.com> <20230827133705.12991-3-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230827133705.12991-3-ilpo.jarvinen@linux.intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 Sun, Aug 27, 2023 at 04:36:59PM +0300, Ilpo J?rvinen wrote: > Instead of if conditions with line splits, use the usual error handling > pattern with a separate variable to improve readability. > > The second check can use reverse logic which reduces indentation level. > > No functional changes intended. > > Signed-off-by: Ilpo J?rvinen > Reviewed-by: Philippe Mathieu-Daud? > --- > arch/mips/txx9/generic/pci.c | 43 +++++++++++++++++++----------------- > 1 file changed, 23 insertions(+), 20 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]