Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1491791lqo; Sun, 12 May 2024 05:11:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbGi6LKuKfD3agUoBFoxMKfM7HC0FOI4eg4aUEXMsODB5J5l/vd9AyWHWG5Izap+qU9gTfL9FfqL4eixuzDPT+IURF7wd2xuBmOI9fGw== X-Google-Smtp-Source: AGHT+IHdPQywyl0bvGfhK5aYscEusWUjYh7lqmKUHplffCMMob+zmodweD0/K17PFG1pmKee7l39 X-Received: by 2002:a50:d496:0:b0:572:5f8c:42 with SMTP id 4fb4d7f45d1cf-5734d44fa97mr4427916a12.0.1715515902349; Sun, 12 May 2024 05:11:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715515902; cv=pass; d=google.com; s=arc-20160816; b=uL4yZeqCCySqWF8VDHaez6VAJiwtrcdlNciJD/46hoenr19ToWghoGvEPnHBqrHour sUj5Bnsi4KOCT3ETPzU1ymZP148RsNLwV5YLkiTDjkh5DlKNE/kgKK5lCqr3qo2z007h wQBughdcQ5V4EI+5QlOJnZI+fRh1SDDhAhTfMeFixI3uhgLcdtpx+uU/vhXPSzYaVIzp UYUdFiU9wI7dt1PMgq1NatpQODf8SNSbDTahOXuLBGRdzek8w8G6TLwfcQ9qL5LR9pUa Xk9nYd6wa1uewo6naghbhldk4cdIoGczLKka7SXouEH8agSumelIC9g+MajD534QJVsl ME5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=2d7T+nOP5qeSFCt03oG/hu07BABYiIiPhUiSswRFVts=; fh=ULxNTxaaQIEX8Y9ih2rqqI9Lxn2bbvdaV8tkS1+QGD8=; b=IgSf86dMKlMACXrJLwwZ/QBNNPtXR/k8ur+CKCd1f2GuY4Wz8XImNTlMgU9hQaCvSO us9+eVP5qCKDtQal6IKUM7zCp2tZ6fKe8o7VaFGnulHp4zZOVqwDi7r9jDOcwt1hpmDN pOzRvQ4GQZYw/Pqm4/+wIbjd+IfC+uMWmPHoGrrjUxImYrGzLye78mHXjK2nHoYzlqJU gGIi48JmGLbTVypM9TMV7UBaDP9zsqhin9MB8IY0RRbwaN9Cu9pWBDBEJEWnX0B9lowS dxs6syhJxK4KUFd5rVCt+HkAHBLCLKWdv9NmgDodF1X/PRXtge8KAFw85jGSIJvi2CYL YLtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aYNC7Fq/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 4fb4d7f45d1cf-5733c2d5465si4044808a12.245.2024.05.12.05.11.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 05:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176868-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=@kernel.org header.s=k20201202 header.b="aYNC7Fq/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 16F4A1F212E8 for ; Sun, 12 May 2024 12:11:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD04D20B20; Sun, 12 May 2024 12:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aYNC7Fq/" 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 0C3BBF9F7; Sun, 12 May 2024 12:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515894; cv=none; b=B+4FJpdGAMRzghVRYtHdSwTn5rNj9LQdyOt6qBBwcyrDovNMr/L8vuQUj/H+4uSGALrRf0aqMBTCL73HDsWL59sZWPpBr6FOVYuEA5VvcJGk9JAwEAcvOoWZAMWGPL17G+PjIpBmm+lrQtH/cvLisFjwSqpXdQRc0kYOA7Q7EZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515894; c=relaxed/simple; bh=u0MxQHi2aW59U0yVeUT6H8+tdanS6j5VOG+chvjIJ8g=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ATOBO7XHHm5w5cRpA3DTXTIo1gflZifQvjdoRcORv2hoOd+Y43u09pzS22ALlPr/SD1VLCSBKGpSn6kihj/4G8A9MBr7fNXnC3fqO3lhTSZaNO2Nkl7NRfKMm7K+mrDComVzqa5pKPHoHuXwOfI2W+kW0qK7vCFcJXwNUA9W/i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aYNC7Fq/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01E96C116B1; Sun, 12 May 2024 12:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715515893; bh=u0MxQHi2aW59U0yVeUT6H8+tdanS6j5VOG+chvjIJ8g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aYNC7Fq/rFRw6svjUNCmJIcWBvymenu01cpCMGq1PEIr2HzjRM7+VicVQMVib/ATn OwWGuaOpekSJUro9dInH9XkL3niCBVYU584YoMkQYOxCpIUM7BU+kebbVfmXgUGb6e YviRRSP/AwqzzQ5RcX3c7LZFfm1lmG6YJDKANnC8qQGdYCxlFM5gyFMhqNDLx4vrYq /owWq8/JpCH+eK232a8oa8wzVkqqbHPSndgTqqO5yGC5PQZFmfWTbNnsjaJpASMBpV YDPWJ8yCPBglBnmpbXxmf6fXulagZk8rs9bzssXT7tAlGh6GCBzWwyU6xdhKcSOptQ cmPpQL2RLm4eg== Date: Sun, 12 May 2024 13:11:20 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, ang.iglesiasg@gmail.com, mazziesaccount@gmail.com, ak@it-klinger.de, petre.rodan@subdimension.ro, phil@raspberrypi.com, 579lpy@gmail.com, linus.walleij@linaro.org, semen.protsenko@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 3/9] iio: pressure: bmp280: Make error checks consistent Message-ID: <20240512131120.28d0cc7a@jic23-huawei> In-Reply-To: <20240508165207.145554-4-vassilisamir@gmail.com> References: <20240508165207.145554-1-vassilisamir@gmail.com> <20240508165207.145554-4-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 8 May 2024 18:52:01 +0200 Vasileios Amoiridis wrote: > The form 'if (ret)' is used in this driver in order to check > for returned error values. There are also some places that > 'if (ret < 0)' is used but for no specific reason. Change > them to 'if (ret)' to make the driver more consistent. > > Signed-off-by: Vasileios Amoiridis Applied. Thanks,