Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2411135pxf; Sat, 27 Mar 2021 10:35:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqo4v0JT4chL3WENdQrWps0EyVX6ijhHxsqQCCB4Mkq7KAoz+dnIPzbwRIaMTEKdPl9m2i X-Received: by 2002:a17:906:9bc5:: with SMTP id de5mr21319523ejc.284.1616866528242; Sat, 27 Mar 2021 10:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616866528; cv=none; d=google.com; s=arc-20160816; b=lFMl8JHIH3GSuG6NDbpm00IzfdQ1GsAm49DG+gursGkDLN2ADSJvHSEH741inJgGOW RdiJHZgNxLv8SXzKEm+czXielh8s7/Q0Cd9tsckC1Df1jKN9wBXBbfXK4WXW3fbyjYsI hQAziFo7TZGRE3y6xD+6lkj+pQT/bXLd0ZHM+awbethm5dP9FxQ03wCZuPR0dbqzLiaq KbbMr9ZogyFqKlB0jVnEb6HmKN5mrf5SKV6P4s38efEikgl4U0hfszFnzCoMjyhJkBl6 76WygTDYRBA4v6ihU9hKb06/on4hxrdu7PXWVkXetthAqDBFE+cKDyVq6e5qhnHNoox1 Qs6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f/cn40ajLF72A5ikLdDKQaB17jhWDhH2B6XtqNbfgQA=; b=h7Xm+LJVNTdAYZtNfciXzXrzcUl8fmNOxSGXBSBj0jYRre+dDLGxsX5jOwzBZgbgK3 gf0QuWtPHjhHp/7tRd9z695T0uUR3lf9OsSrNe3Sm/i40ZlOdcOVaJ2Kk/eZpl45NMpC kI0eN7HrRSx5kNGIRir+zt97RXX0bzDSBFworA0p65NMKqWevd1Q0EvvsM9iu8tzRY1G v7GL0TA+vOBzDklTULZXcx8QdPc3zJBn9xzabJb2H1A6tX6bOgBz0zOQ0nUyFC87aMXu Ej37PrEVJIo9TL8SDhUXPwSq/yzORqnuj7T7fA8jS8bqmZtMy3vQcQOrdtRoojEtDSLe X0Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rQXaQob4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh20si8897617ejb.749.2021.03.27.10.35.05; Sat, 27 Mar 2021 10:35:28 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rQXaQob4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbhC0ReF (ORCPT + 99 others); Sat, 27 Mar 2021 13:34:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhC0Rda (ORCPT ); Sat, 27 Mar 2021 13:33:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08E9B619AE; Sat, 27 Mar 2021 17:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616866410; bh=oxyLYLefehpWosmb5y5Pli16dqH1dyu9Z35XDlG8ET0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rQXaQob413Eg6E56SJ8wTkqWk9NuTG34Apv0JcwAKGYMjnNn33LGum+D+t7gTyWyH lojMX41ea2R9C9cd/yrn/IgxUT1xO4NgYRbw0WRKb55UOEnt/s6rEuRa36wSmop6UB wbU6uMoA35DrwNx1QcJrseH9+DbH5aazyNWNn3+l3wSdo7z7/AzxYId1+uUGq13c/A rLAIzrW8MvxEZpl5qi0iBXlU6G486nxvTrBMybqIL6N3Op5msIGG6Pk99SQw8gOSaM vLXBnUnzLhTDEqR1z/9IEjqJNbkK9fHIRDvmVF1ejmU0RhFCSz7Qk9IZXHDlwiLWpG y55ZIdi19uv9w== Received: by pali.im (Postfix) id 6551195D; Sat, 27 Mar 2021 18:33:27 +0100 (CET) Date: Sat, 27 Mar 2021 18:33:27 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marek =?utf-8?B?QmVow7pu?= Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Kalle Valo , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Marek =?utf-8?B?QmVow7pu?= , vtolkm@gmail.com, Rob Herring , Ilias Apalodimas , Thomas Petazzoni , linux-pci@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Disallow retraining link for Atheros QCA98xx chips on non-Gen1 PCIe bridges Message-ID: <20210327173327.tfn4mjq3cvrq33qu@pali> References: <20210326124326.21163-1-pali@kernel.org> <20210327132959.fwkphna7gg57aove@pali> <20210327154213.571aa263@dellmb.labs.office.nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210327154213.571aa263@dellmb.labs.office.nic.cz> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 27 March 2021 15:42:13 Marek Behún wrote: > On Sat, 27 Mar 2021 14:29:59 +0100 > Pali Rohár wrote: > > > I can change this to 'if (!ret)' if needed, no problem. > > > > I use 'if (!val)' mostly for boolean and pointer variables. If > > variable can contain more integer values then I lot of times I use > > '=='. > > Comparing integer varibales with explicit literals is sensible, but > if a function returning integer returns 0 on success and negative value > on error, Linux kernel has a tradition of using just > if (!ret) > or > if (ret) > > Marek Ok, I will change it.