Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2628385yba; Mon, 6 May 2019 09:03:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6hjHLCmV9/bbomHGJ3EaIGq1/bx9yHPVTGnPY1fD1qi5dR2YUWN6l3orkty+Dl6wRC5qd X-Received: by 2002:a62:e043:: with SMTP id f64mr35103640pfh.76.1557158590638; Mon, 06 May 2019 09:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557158590; cv=none; d=google.com; s=arc-20160816; b=VNX/d+P9VTFKwRYb2j9L2D0fwaD8jqvLlNy5ZSkvB2H+LFl5rYDPVV7IkLN7H2Oz8E Ab7psgJL/WVNUAzn4l+c448nyP15qwvgShIwENowIh3sNRZYrbkQhthysWrTwMROGaqu 0LnNcz5mA/4Xu2yXTO88socOFq5vW+edNWdjZEBCj6IW/JSMsu+1NckdL/9e/Us1Raq9 2+PcjKNzmJfklbMt2WxqxZz/9CotssRmQX8ws3QaotjNI4Nde3Ip35MvI5YMuYbq4tls NUxOt0DEXJzC9JcAiw6Y3KbLe9P1aY13DFLVocqZjrSs337/8KT4kys58NpSy9y6gxOb OvsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=J0YLmIWTAMlXLa8KfrbDx7S88ttfrwNd8vAuI8muGB8=; b=CzdQUN+k0dYqO6BDipT71gpPSd3dMQKd8oro3KrQXwsLyOWnIok8ONLlSu+v7T/MyD KZuhz1I4qVCkFU4TKj25ZbD8WzqgC4WSubGJDcrCwVuZzkMOrree/8MUhKarLs6q3qJO GpPbRYesfNRezKGxA+M80CKrIe6lk6PxAPMf4ZsEq8duY1tiJ3GOuu8RhjwRPBrgFA+i 8qD5EI9urVEkUxuaBeeEPHOdjjx3Scu52gQAPWmOPXTRgHLn57lN7QsLUszPL3oOXmd6 zLm1SwDOkMqkE0EksF2H1+WBDlS6ynKqmivg6REwi+bQOK41suqfGfAV1nYtd/1suvAW GT3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a68si15907404pla.60.2019.05.06.09.02.49; Mon, 06 May 2019 09:03:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726464AbfEFP7J (ORCPT + 99 others); Mon, 6 May 2019 11:59:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:60760 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726413AbfEFP7I (ORCPT ); Mon, 6 May 2019 11:59:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4DCC3ADDC; Mon, 6 May 2019 15:59:07 +0000 (UTC) Message-ID: <686a4d50696a87b9cbe2a5908737ce91faec5313.camel@suse.de> Subject: Re: [PATCH v2 2/3] staging: vchiq: revert "switch to wait_for_completion_killable" From: Nicolas Saenz Julienne To: Dan Carpenter Cc: linux-kernel@vger.kernel.org, phil@raspberrypi.org, stefan.wahren@i2se.com, Eric Anholt , Greg Kroah-Hartman , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Date: Mon, 06 May 2019 17:59:04 +0200 In-Reply-To: <20190506152039.GT2239@kadam> References: <20190506144030.29056-1-nsaenzjulienne@suse.de> <20190506144030.29056-3-nsaenzjulienne@suse.de> <20190506152039.GT2239@kadam> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-HWk7wVSA1bmO90ELmSsB" User-Agent: Evolution 3.30.5 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-HWk7wVSA1bmO90ELmSsB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Dan, thanks for reviewing. On Mon, 2019-05-06 at 18:20 +0300, Dan Carpenter wrote: > On Mon, May 06, 2019 at 04:40:29PM +0200, Nicolas Saenz Julienne wrote: > > @@ -1740,7 +1740,8 @@ parse_rx_slots(struct vchiq_state *state) > > &service->bulk_rx : &service->bulk_tx; > > =20 > > DEBUG_TRACE(PARSE_LINE); > > - if (mutex_lock_killable(&service->bulk_mutex)) { > > + if (mutex_lock_killable( > > + &service->bulk_mutex) !=3D 0) { >=20 > This series does't add !=3D 0 consistently... Personally, I would prefer > we just leave it out. I use !=3D 0 for two things. 1) When I'm talking > about the number zero. >=20 > if (len =3D=3D 0) { >=20 > Or with strcmp(): >=20 > if (strcmp(a, b) =3D=3D 0) { // a equals b > if (strcmp(a, b) < 0) { // a less than b. >=20 > But here zero means no errors, so I would just leave it out... I agree, I'll fix it. Regards, Nicolas --=-HWk7wVSA1bmO90ELmSsB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAlzQWcgACgkQlfZmHno8 x/5C3Qf+L5Sma8zaKvvi3d9DSw4lZXBIQpyTCI5G81wW2l+4ax2oZnUNZlLpu7lj sRJy5o+hSJExXkx/3b3oBUEojchKWCZPC7ZI76aq7uhRK93Q7Yf4jem9wUJvsOwf kvsdFhSIO7F/gxfNfZUDn2whfAN5FPBvSTBqq3e++k/1+RTqe/y65rAbJIeIkmrL s9qVV+DWownkHzfGwsVJ1paJmvrLuwYOlfsPXIlQk3y8g+GSClXRsCWvPJxeS4vi 2Qzs/+AB6kDiVzDdxj7YDF1puf1d4xliFfvMJnUR7iEdzOG0IQZAp+qMktTvOKX8 n//mOh1eQcHx4P/2ajTxj8/5P5Wieg== =QGu9 -----END PGP SIGNATURE----- --=-HWk7wVSA1bmO90ELmSsB--