From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F94E210ED for ; Thu, 2 Nov 2023 18:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="koLb2Fq5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5843C433C9; Thu, 2 Nov 2023 18:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698948816; bh=Tvtyqg7IcGUInQqwST4VMB42spLexh8JO2MCVWKGPG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=koLb2Fq5s+HfW90KJKCguiuXWYPN9Eh5ujRJpkIg5C/hLTSsMGfUCdvE/WnR0ou04 Rwk6t3veid53NPdJHb5W52gV4HObtbYrscx62uT3jVz0xNq02LFo7LnX4O6WumXt/k OYyLsYtGykCgaN7fdkiRkQCF6haYSJsNjDL4fkWo= Date: Thu, 2 Nov 2023 19:13:32 +0100 From: Greg Kroah-Hartman To: Hans de Goede Cc: Sergei Shtylyov , Andi Shyti , Sakari Ailus , Wentong Wu , Oliver Neukum , linux-usb@vger.kernel.org Subject: Re: [PATCH] usb: misc: ljca: Fix enumeration error on Dell Latitude 9420 Message-ID: <2023110216-straggler-marbles-b760@gregkh> References: <20231102164817.547128-1-hdegoede@redhat.com> <1027800d-7740-c52e-e372-9993888ecd8e@gmail.com> <841a0653-15ed-268f-d702-c97be7482ca8@redhat.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <841a0653-15ed-268f-d702-c97be7482ca8@redhat.com> On Thu, Nov 02, 2023 at 07:05:33PM +0100, Hans de Goede wrote: > > > >> ret = ljca_send(adap, LJCA_CLIENT_MNG, LJCA_MNG_ENUM_SPI, NULL, 0, buf, > >> sizeof(buf), true, LJCA_ENUM_CLIENT_TIMEOUT_MS); > >> if (ret < 0) > >> - return ret; > >> + return (ret == -ETIMEDOUT) ? 0 : ret; > > > > I don't think the parens are necessary. > > They are not strictly necessary, but IMHO the code is more readable with > the parens. I agree, please leave it in. thanks, greg k-h