Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp522521rdb; Fri, 26 Jan 2024 02:59:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/kys9fCS/aYlWXzz7R6CI8WuYfOrqT1ftbo14FFWbwRvW/dP6yCcOxkr/ThcNjPqDOSjE X-Received: by 2002:a17:906:a98:b0:a31:3703:4f08 with SMTP id y24-20020a1709060a9800b00a3137034f08mr665656ejf.47.1706266740591; Fri, 26 Jan 2024 02:59:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706266740; cv=pass; d=google.com; s=arc-20160816; b=SiWplUAtwOShvvZxWctwp96Z9A8s/TBVLjksPacKrgkcTilG5NifU/BIzpYZZxQcTA 3Ypj/IgbKID2MyhskcIsPxk7rFZhIFcV1OdBXQQZSbO+lJSoWlGB4Phldy4tlxPaBkDx /kZDJyLiQgMXWv8Q/GNQ3BIGb90hmTT2Xt0j9ykPZ5xEVsHfh2KJGnKDyMs0ZffMPop9 n/E0YzOV/7t7SQ1vGTRmdak/wr6LwuDJT7kER1oZiWLgboUFPbAiUlGLjY3/R6xFKJ6Z A0AZ+D3HY62kh9ZggVAOG7xEaL1NB8geKalnoqB1uP6L49KBB1SFvdk8YmmcGh1/++nx 4SEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W6vhdYeVPQJux/HIgF2ofoNK0exYwVuGwwIvMn+6ogc=; fh=89/uMDrOVS2gh+XZdnNJzw6s6/NUZ5aJ4BYOLRyBEWU=; b=NshChmwDIYq3qgpLD5nt3Nsj9VlA80YJTVUtxya4Dtj8r3jYIpjPIsMzh5LVRjqw4n cM/wjLITm9pwGc8TwMnXZXowiFtS0/Yd06VqJWVNtufoa8Gw/3DLpWo6Z9uovrd7WPal uqGPGKcP8gA1Ijijy2YTj2ppg3eZsLWolKStkBM0NZhyU2yFwXQZw6r0ErJl8S0bIpDV jIXdLrNU1D0f/P9phlwbEWcZYySzRDnxHyz+MHu0Cs2gLWFZPpXxgW3gGPB7TItJneJU BDE9ey2MqTk0MvYZH6kkjNloSJcS1V7hHyimpW98Uxbj0IYo3KCoLeXNENo9geRqv5bZ KQjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b="Qqb/A1Sp"; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-40010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40010-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j15-20020a170906050f00b00a3499a66511si477564eja.832.2024.01.26.02.59.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:59:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b="Qqb/A1Sp"; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-40010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40010-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 51DD21F28CBE for ; Fri, 26 Jan 2024 10:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DA1913AEC; Fri, 26 Jan 2024 10:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="Qqb/A1Sp" Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (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 89952EAE6; Fri, 26 Jan 2024 10:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=172.104.132.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706266729; cv=none; b=U06S47q4xAhizQhzf+Ry1JJUueZLGL7mvPMRafC2v4qKQaT6TdyIrVj84YTvmlytl4aClHmtzRw3dTO3o1YoKINAZfx87k8OgSyXZbktzn1x72GVDV4tuTte0wORtqFV2994eP8n/xlU5N6v6NG7PXPyc8wwkB0pnFPUJGEesFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706266729; c=relaxed/simple; bh=3aiLAmH0RdcOP4o9+Z28MUU6iwYGmfnBmv49RlTdb8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sA3e3C8gDO2kJ8cFoGp2ceKhN+NUP6EsNnS1yKgwbFOE2MqT41u/c4pUlCm29YiFmt3nNWEKcjPcz7pQLkKYtUrSkMEvKnodzrqPmYjNNRW8vEay8PQKGPwb6N/WzejvT1Oti1xeUNvf9BCm1meGEq6u8uaCFJV+WhONil1X9c4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro; spf=pass smtp.mailfrom=subdimension.ro; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b=Qqb/A1Sp; arc=none smtp.client-ip=172.104.132.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from sunspire (unknown [188.24.80.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id 0761C28B531; Fri, 26 Jan 2024 10:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1706266725; bh=3aiLAmH0RdcOP4o9+Z28MUU6iwYGmfnBmv49RlTdb8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Qqb/A1Sp80ZO8Bj8vxbUHbeuypI8nzGATy11DJ5pmorbutNHtwlDj7cCzLEemsF+6 8x50Z9Z25MR6BCCoa8xxWue1yTEnmXGhC+Jlzxc/GY0ZUj+ZQ4R9rnphobBGjXBCnp +wxwbHbTZujc3WoWmG0df3SDcIR01BQfbZctXWng= Date: Fri, 26 Jan 2024 12:58:43 +0200 From: Petre Rodan To: marius.cristea@microchip.com Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] iio: adc: adding support for PAC193x Message-ID: References: <20240122084712.11507-1-marius.cristea@microchip.com> <20240122084712.11507-3-marius.cristea@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j6hFgdCDz3A6ajHc" Content-Disposition: inline In-Reply-To: <20240122084712.11507-3-marius.cristea@microchip.com> --j6hFgdCDz3A6ajHc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Marius, a quick static scan reported the following On Mon, Jan 22, 2024 at 10:47:12AM +0200, marius.cristea@microchip.com wrot= e: > From: Marius Cristea >=20 > This is the iio driver for Microchip > PAC193X series of Power Monitor with Accumulator chip family. [..] > + mutex_init(&info->lock); > + ret =3D devm_add_action_or_reset(&client->dev, pac1934_mutex_destroy, > + &info->lock); > + > + /* > + * do now any chip specific initialization (e.g. read/write > + * some registers), enable/disable certain channels, change the sampling > + * rate to the requested value > + */ > + ret =3D pac1934_chip_configure(info); > + if (ret < 0) > + return ret; the previous assignation of ret is never used, so either dead code or you m= ight have wanted to return early based on it's value. cheers, peter --=20 petre rodan --j6hFgdCDz3A6ajHc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE2Ap/wXYVGTXsPl+pzyaZmYROfzAFAmWzkGMACgkQzyaZmYRO fzA8lQ/7BqVyUd2MTfT1Q7WdU8tEr0IO04T/8q8O4rLv4qn/euVY8f8zodmd916M aszgIBKbFQSRQgDeKDgV/k1mdozZjY650e70htkS+xyPfw4IK6GCEBkjSDDH4TDS f0csnQFL/CIUmriUxAA5BsEvtK1MFfOmOb3A326/rtFfM+B0dmcRTlTYFvrCp3EO NhO1C7UMfMclLbb6nHWs8Q+xPnjzH70JejXqL6QwOGHWvHiI/iJkT55mYuvBUdiE 12zjuD9L8uqUWPCPAd7mpyFuKI3ilb6fwVx1nABwn+wi/m+snu4425wUDpACqofb Vk+MTtro82m9LjuElDYcDhRITVgj5CiRWI2X78n4h1ZfIbICVMXkNxSynce+56+X d6UpAKlpjoZWyBflcoudN9gEDYzc20rcZnQ/qQ5GbfoVyeM9+cOB1ymlAGR5zhWc wSiTnlzNEiFd4TzwXOO2aDXzwI6VJGnsXPFyyNWujn2zwFJrCK2ihZsb73jVjON6 KYjJEtq2ZQ2qzkzESdY2AQrsnXGJBokPIJc50wMo7vzPRbEe+kancgNG1xgCeLdo rceiUmqOYGFVprkXw10Kh7IWZhFpSyQcAxj0gHikeYrIZkRgQf62hXjmBNieWCz5 ZqqB4jLxNSV2FEMOKp7Bc1ONhqV8HNhjqaXewY3xya1ngPOZvYU= =lZiH -----END PGP SIGNATURE----- --j6hFgdCDz3A6ajHc--