Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1800905ybv; Sat, 8 Feb 2020 06:17:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwfxTRnmfu2YHQ1UZdY8owOgI5yzLI3EkpP+aIg9nmulRzxiuBq7mTPfkchJLSURfTPXDtF X-Received: by 2002:a05:6830:1047:: with SMTP id b7mr3717062otp.77.1581171461110; Sat, 08 Feb 2020 06:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581171461; cv=none; d=google.com; s=arc-20160816; b=LABqDj8eEPUKg/Y/3SitWp+prRFV1SySj36b4EsFgsD2CDa7HlrA27dm4VxL12f46N qWovp8oBeG7zd4+fbcbaxJIhQ4j8EoC3CJn0CcbxuLcJM4ACDWiJuNitGdh1fS/MOuYi gBvizVKV8Cmjs9uTe7ESzqHR94+MeOqxIYBZNgYEOjDssbci7G3a7X8kZ/SSVaAjdhWK b1Y7lqElqQl5miEfoZ3Oy3S1FBYnvn1YbFw8dr7RCqhktl+CHQ1txAd1gVQECV2IxUad Mo8bk/M/hIgzfvLNONwqOcywZcJrL3pMobn60y5WW0XGLtxRxSGUXu0+XT+RmZ7uy7Zc gTGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nh2Ll2XoV9GhT/5+3NcyovV/Rf0fpp9FqedLn+lTLVw=; b=m9DGawnesZTkWB2TvgWJfL+4luzoENc5vdl8gMCtFM6Ul6B/ke6+q3ESJ6pvdiX8kB C0gnD8QEAttDQUce7tpuMXYWqm1CONZbZA8KHY0BWCGd5EUv60YR2wlf/v8yrN4hXZTa HB4wU+hzXvxuJ/n6+AIwbCmvHCgcLAjmg1XQrJdaqPWBZ7NG2aF0WK84FWGqImwikP2z ut7h05MpT6JCJnP1+JNs36sjdKMHq5WAW9KqzsBIdx59+aWQh5K6jsstLLt0puzQn24z ar8jN3WQRjE2G5GepkauZUDVIah3e8xuPHbNEQzqreeH3B9XhYNFm56cfYq4XWFJAJuw fDsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AnauG0QC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si5526764oie.181.2020.02.08.06.17.28; Sat, 08 Feb 2020 06:17:41 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=AnauG0QC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727341AbgBHORT (ORCPT + 99 others); Sat, 8 Feb 2020 09:17:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:45724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbgBHORT (ORCPT ); Sat, 8 Feb 2020 09:17:19 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14CAE2082E; Sat, 8 Feb 2020 14:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581171438; bh=z5cQib/9fiCGYeeu6o1Klzel6o81Q2+YFMOQ6rt6FE8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AnauG0QCiOEPSdpqJe6FuDH15Pynll2mV1N/I5iuB/b7idTR7KZ7qheY8uj4lgUTI YZ1O5q/3cNNgFRZfEhFrGzeyBOAz5eB0COdaWe9E+pINN9hWJ/D/POg2TH2F5lI4nu o6Ag+lqmXhK7cvkc5OY2tvQTHNn40WSAxkKM1aq0= Date: Sat, 8 Feb 2020 14:17:13 +0000 From: Jonathan Cameron To: Guido =?UTF-8?B?R8O8bnRoZXI=?= Cc: Tomas Novotny , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: vncl4000: Fix early return in vcnl4200_set_power_state Message-ID: <20200208141713.469fb174@archlinux> In-Reply-To: <19efdcd597b21ece9ad0ff894b6566d2ef4e2c02.1581066317.git.agx@sigxcpu.org> References: <19efdcd597b21ece9ad0ff894b6566d2ef4e2c02.1581066317.git.agx@sigxcpu.org> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Feb 2020 10:12:09 +0100 Guido G=C3=BCnther wrote: > Don't return early unconditionally. >=20 > Signed-off-by: Guido G=C3=BCnther > Reported-by: kbuild test robot > Reported-by: Dan Carpenter I've merged this down into the original patch. Thanks, Jonathan >=20 > --- > I've not added a 'Fixes:' line since this is not part of Linus tree yet. > Tested proximity and ambient light on a vcnl4040 and checked the driver > suspends/resumes correctly and puts out valid data right after resume. =20 >=20 > drivers/iio/light/vcnl4000.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c > index 3b71c7d538af..38fcd9a26046 100644 > --- a/drivers/iio/light/vcnl4000.c > +++ b/drivers/iio/light/vcnl4000.c > @@ -149,7 +149,7 @@ static int vcnl4200_set_power_state(struct vcnl4000_d= ata *data, bool on) > if (ret < 0) > return ret; > =20 > - return i2c_smbus_write_word_data(data->client, VCNL4200_PS_CONF1, val); > + ret =3D i2c_smbus_write_word_data(data->client, VCNL4200_PS_CONF1, val); > if (ret < 0) > return ret; > =20