Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp171487ybz; Tue, 21 Apr 2020 17:58:43 -0700 (PDT) X-Google-Smtp-Source: APiQypIrX25U+2dKQ2QIq5J4ycnen0tCgOr2JXMTY1aTHB4gowOj3FKcClcPRMLektd9scAprSYS X-Received: by 2002:a17:906:3296:: with SMTP id 22mr24421671ejw.195.1587517123492; Tue, 21 Apr 2020 17:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587517123; cv=none; d=google.com; s=arc-20160816; b=YS6FAx0qobnqL28YR5PqhE60QXRvf5yI4as2LH7DU7TrOmPqMybouHeiu860EVjWjp NaOBuooRDoPlOfrxO6PXrkxnT0MYRhaFnYSJSh++hBiGQsNt1eBOeinN63u5uDJvNA2n Aeuuqccf8DBd1sWMiYyKIcUXwe/MHwph/JOZcdHK7f+veG5+lrGovXCTBx2arhrUVsWW oJvyb6oudg9NoLD5Gf48PxBf6/06rXJKwg4J9W3dx5Vsp/i6F3sDOWK3uThn80PTlDH7 4FH0Pi0PKnISD3FrwCGya3lwJ++7kUf/zsF9dUAD7drhkM0T5tFNDnSeWjTMLwvaal+E 3RVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gXQ0ZKU9rPACm1NpC5IpEEgnJ67XgjPS3brhHlbPLjM=; b=hBlEbU2yy89UNWInrjEAdl3PgnRGS8UPRHxkj5YZSbI1Uiak+I15gIOVVhlmXlR9D3 rp+FCgreiKWXXAdH+zqE++5p5+cgdnfeBigJ4ZAFyipvdPGMXfW/xhK4Yh0i3rgTW+Xb xy9LQ9v2zt3COjdOohSeS51JiACmOInQrp5VeLAWc8FU1HylnknBleOIEKZjQEq6/bag QS4eZTnr9Ii95lmx3YY+9QG3WTRdffr/sI2WSTH+QxOHZLxlCfteVvQbhBgkVgZW0xkJ g9UYIQ/LckqfcJdcZGbZHpOlHRdOn2QNr4/IJ9wsTgu+8y8Bv1NQjTIzIikqqo4QFr9b LMDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=p9vwGiUu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x29si2388160edi.561.2020.04.21.17.58.21; Tue, 21 Apr 2020 17:58:43 -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=@google.com header.s=20161025 header.b=p9vwGiUu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726377AbgDVA5I (ORCPT + 99 others); Tue, 21 Apr 2020 20:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726012AbgDVA5H (ORCPT ); Tue, 21 Apr 2020 20:57:07 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EBF1C0610D5 for ; Tue, 21 Apr 2020 17:57:06 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id p25so184054pfn.11 for ; Tue, 21 Apr 2020 17:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gXQ0ZKU9rPACm1NpC5IpEEgnJ67XgjPS3brhHlbPLjM=; b=p9vwGiUuSpsVhM1Y+a097TYl/ukBeFkhuEwwf+3Jq0gA4gZv4VS0+xejL+med599lx bxrZ209gl+eKh4FVuewcX7Iw7bALgT9IIOTFdrQcxUh2NFHDH2pKAQjRzIaWanFbGZo9 HI73+YSyNwZZ09iUztxdn5ZTNrxPd0KYxIqMD0po6YcoC5IMSiZGduiMA8T8E2cWH3xH endqfwJ7clFJVmmeAca75o9whMufeY/FgpaswFHamUKg6sNH6u2nbMvObXZMbbezI87f o9Z8wLbkXxqFlqhyQ0Oj1ZT11k8xdKaAmhv2oVOm2mOc2DeKjzshAyO3XI7/436lEIe5 NgbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gXQ0ZKU9rPACm1NpC5IpEEgnJ67XgjPS3brhHlbPLjM=; b=K7FVSdBi0dOjXe3o+2CUGoGnvQIZvVejhTqngRdaRAWlSYaLuBITafD5IbiOe3f84E 2/+Zo0OzpxZT0+8Y0TYiiSYkfBgThwHFU6P9i0k8x3nBQY7ZbKmh1/t8H+k6tXEXIbiC xh2s5icnSFGb7lQPznQrCVZ/LLlZpA3aWEjXItXBmLQgn7JBx6GvqRAdOi3iSQj8Ppbb s/iL0Itrs/bDU1brz0WYlYe/V0VO8keMfPPiVfVk9Ql32t0sKzt3sFTHAmhyD1pfmFI7 MryHWvskvKKIpGxLlSyp5S+LlujoYgRVEOv7sW0cW3ycsr7/PMV1oBjTMKSyVZQZh5Iv d6Cg== X-Gm-Message-State: AGi0PuYtmHsFPFw0J3rifjnH+5lguwzHYd3KQcnin/WVtg9rjcQZAjAZ 2WVx2ieYqdW5Rj/6cBhcDJUEGA== X-Received: by 2002:a62:5209:: with SMTP id g9mr18641149pfb.220.1587517025116; Tue, 21 Apr 2020 17:57:05 -0700 (PDT) Received: from google.com ([2620:15c:202:201:bc61:d85d:eb16:9036]) by smtp.gmail.com with ESMTPSA id x23sm3330352pgf.32.2020.04.21.17.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 17:57:04 -0700 (PDT) Date: Tue, 21 Apr 2020 17:56:58 -0700 From: Benson Leung To: Prashant Malani Cc: linux-kernel@vger.kernel.org, Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Heikki Krogerus Subject: Re: [PATCH] platform/chrome: typec: Fix ret value check error Message-ID: <20200422005658.GA208993@google.com> References: <20200422004151.116323-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <20200422004151.116323-1-pmalani@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Prashant, On Tue, Apr 21, 2020 at 05:41:51PM -0700, Prashant Malani wrote: > cros_typec_add_partner() returns 0 on success, so check for "ret" > instead of "!ret" as an error. >=20 > Signed-off-by: Prashant Malani > Fixes: 9d33ea331032 ("platform/chrome: cros_ec_typec: Register port partn= er") Thanks. Applied for 5.8. origin/for-kernelci updated. Thanks, Benson > --- > drivers/platform/chrome/cros_ec_typec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/c= hrome/cros_ec_typec.c > index eda57db26f8d..66b8d21092af 100644 > --- a/drivers/platform/chrome/cros_ec_typec.c > +++ b/drivers/platform/chrome/cros_ec_typec.c > @@ -263,7 +263,7 @@ static void cros_typec_set_port_params_v1(struct cros= _typec_data *typec, > =20 > pd_en =3D resp->enabled & PD_CTRL_RESP_ENABLED_PD_CAPABLE; > ret =3D cros_typec_add_partner(typec, port_num, pd_en); > - if (!ret) > + if (ret) > dev_warn(typec->dev, > "Failed to register partner on port: %d\n", > port_num); > --=20 > 2.26.1.301.g55bc3eb7cb9-goog >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCXp+WWgAKCRBzbaomhzOw whqjAP9vj3ehlrgYTfe7GbbIZvZJPN5fPnDJFqIiF6HgovzcPQD6As22716OzrWi bIJXqW53SM3cskd9BB2jF1cO//7LaAM= =ptXK -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--