Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp624795lqo; Wed, 8 May 2024 09:43:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrSi0+FEr8uRxj9IWEq5neGTnr+RLENMOwdvHFPh/0ik8/rwVyW/6SOrUQvtHakALQvzlSXOpqnVI+pwwM18SVLwGI8OYiurzrBmhp4g== X-Google-Smtp-Source: AGHT+IHb04oXDefN1BxtGUMBHdtSDuF5xnU1ILAYiJemvChi/i0cpivx3gy6qX6gtuk/tQF7h6yG X-Received: by 2002:a05:6a21:3994:b0:1a9:5e63:501b with SMTP id adf61e73a8af0-1afc8dc6c4bmr3891928637.44.1715186581461; Wed, 08 May 2024 09:43:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715186580; cv=pass; d=google.com; s=arc-20160816; b=m5wyeUuQts8GqzTYhPsKa4Ua661fdf60cnpZ84llD6GgaRt6LJnFqXEoRO9nDMo54g UjG9XAmFrMHWBj5HbEOr9+oEgcpWJn+5uYujNlixwlSF1NuFFrGHti5EfTP2yx5V2ygy gMsPpyrWBv3xZPLI9mHwOOTcmjo/5NMB/OPzG2NzkYHcvwFm3fOZcYvdDSgVYksyxkCc c8PoKtebSdhus6KFQnsZz8PkAlfZrGiCUr2Od1n9ZedBLMD3cYaJsQ4i92cPDVnoH5Jn YIzI2Bergvkgij5OzVkBBvL//vxzfGc/oCEeQgESy6D+dVAegYHWl8KDexmrzGHaues7 ddHg== 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 :date:subject:cc:to:from:dkim-signature; bh=qkV2bnGI2BWyPngxKTJfpLv7Ui/dNejnP7F0QLwVFr0=; fh=m7Dis8OzvATY3nrVSvkOov9UTJkaC4aaJ9A3CMLRPZ4=; b=L2OF7dF3x46Htyp0a3zKsp1j9C97Qo5mMAAmIJf1gPn+QVW01lVFFuNCtbYmHmYpDF lnR7sAdy6eoilTo8uXP3kAGcn7U79jO77iAalhPlitaVlgqsk1++78Oul5Xm0x8PHXYZ 0lXcY8bnGlFvS6CPUm9oqm04hElbB7NiuwpjtBU/DW0lpZ2Cm4eBOW19TszbCDEE/C50 PrIsurB3U4R06XzjeNUkS6P8Z3H0uG5lxjYPuh3jxo84Tsr5dfUk+KslxHnbo7dbIlx/ 9E1Fu46r3I2+zHMz+XPSMdfhlIoX2ePERvrZF+vjMQcHO0Q1szAQRiR6+QQ12iN2j1Kk fsZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bXtbLrgw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fb36-20020a056a002da400b006eab2023cfdsi8187380pfb.157.2024.05.08.09.43.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bXtbLrgw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173546-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A5F5BB2469E for ; Wed, 8 May 2024 16:34:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC42EDDCB; Wed, 8 May 2024 16:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bXtbLrgw" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 419E3D524; Wed, 8 May 2024 16:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186080; cv=none; b=Ntn1d52Kt7JCQtsHTpKrNDXemsz46ctq/i4/uJn+rFsPNYi8TeUBAOqZooh61mDzOGDHv6RbWoD4/XFeGgjjJZG0wQ4sAWkfmObO6Xl9OshWYShVWEWUcRMzemcQBoadd9/EwYplLHL/CubOZAuPiDof0CVjxhye51YU9h3co+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186080; c=relaxed/simple; bh=doBaB0rNJP6gachGgrNAb5iWQ/1lP5X0sdIEkPUu1pg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YgaXzVu8PZ1dWVfrqQHQT+SQ6qSV1ETsjxJFM5u/dzaMmuCgOr8wDt8T7/avm6IhYqVo7qQOK526I0Qn7uW1XzyPgIDf5AHCv0R91mU7YyjbQ00nYUYEnVrtODKuxqKcIGQf1HrJDLjeSDYyWybxd5CMqRQfGC9TGHDf9q6kRLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bXtbLrgw; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a599af16934so1161282066b.1; Wed, 08 May 2024 09:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715186077; x=1715790877; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qkV2bnGI2BWyPngxKTJfpLv7Ui/dNejnP7F0QLwVFr0=; b=bXtbLrgwmDOUtjG83Lce6exoc1lMYeoCcVqTBGO57Urh1lCrRF+Mm+k2N/QH+95eZX WBdpFDIrWVnngSs7C76PjhwpD3MCFGneQLBjmD1SlsecakoRwHuE/bSi/91GARk9/S0Q ZX+4hE9rMU4rPvvZzqN9FjPuJLmwND6FKrl0Nk3cFD1EVQ4wtERXmoIh8ezpwjbhJbwD aDvw8UZtZoZJf4bbOBmNiLDyiUSnDBe88F6xc4URp3QIukq0St9Ea+VT4cCkLizG5Xy8 4/LABsrHCm8JgpERfedyPE3K/VKYXvUK8wvTr9fhVIgXIGCfimr1Z5TmjgmcXcOVj4Wg p6WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715186077; x=1715790877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qkV2bnGI2BWyPngxKTJfpLv7Ui/dNejnP7F0QLwVFr0=; b=onFmpZ4OMoG40drRehRXIE5eARIoS5s2zBq2AMnYt3CSCf6SGoNdCsDC4S89mQZ1av RfN9FOiEbFIvuzSWRdE6vAEpCkVL2zfKQhhPeQKkWzg3rWQLEQJ7wGtVg6QyXYKyiw1L avDMDffQ0+eVbk6yzyssAf4uvg8PyKWxkxBu2c0MiJvLlQ+nlYkQqxd9VrqrkPonMnoW /3ABqPPSiHBWaZHu9gXkv7MwkjupwUmc/XwSuZpbuY3kHrlcFQ+3jLD77p8mbrGwtuGf dA3INz/UYOi9CAv0mTOkBjAgyp11ozk44l3/v9eNEm7ok2PRf0i0LKU/IHWgRgLT9lym w0Sw== X-Forwarded-Encrypted: i=1; AJvYcCUsYgJuhk0YPH7PIHePmvomQRFeVWcLsW/JXRXO6j771Q+suMxsAb0B5sa8YrGEfexHba+5zJE6tb8IvXhwJAIDXp/+GN26a3XjlEvJo5GkUV50DhD3WyROCVDldMklx0826ZHzxW+P X-Gm-Message-State: AOJu0YyaZ9JqTn5ebrx6VxUSTuaPlDJcztxgC7C5CKmNiHho4oZN4ibh dJ2W49fdw3F5xkGb3xhMUyqmG4Uhl89QAGPTN8JGebRGKjmtEGiY X-Received: by 2002:a17:906:f917:b0:a59:b02a:90e7 with SMTP id a640c23a62f3a-a59fb9f0eeemr207854466b.64.1715186077523; Wed, 08 May 2024 09:34:37 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:a3c8:644e:cd04:560a]) by smtp.gmail.com with ESMTPSA id hb4-20020a170906b88400b00a5599f3a057sm7872843ejb.107.2024.05.08.09.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:34:37 -0700 (PDT) From: Vasileios Amoiridis To: jic23@kernel.org 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, Vasileios Amoiridis Subject: [PATCH 1/9] iio: pressure: bmp280: Remove dead error checks Date: Wed, 8 May 2024 18:34:17 +0200 Message-Id: <20240508163425.143831-2-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240508163425.143831-1-vassilisamir@gmail.com> References: <20240508163425.143831-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The ret value is being checked already in all the previous paths which exit in case of error, so this path can never become true. Signed-off-by: Vasileios Amoiridis --- drivers/iio/pressure/bmp280-core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c index ed49e0779d41..311a011604da 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -1350,10 +1350,6 @@ static int bmp580_nvm_operation(struct bmp280_data *data, bool is_write) poll = 50; timeout = 400; } - if (ret) { - dev_err(data->dev, "failed to write command sequence\n"); - return -EIO; - } /* Wait until NVM is ready again */ ret = regmap_read_poll_timeout(data->regmap, BMP580_REG_STATUS, reg, base-commit: dccb07f2914cdab2ac3a5b6c98406f765acab803 prerequisite-patch-id: 97b99b1106cbfd65cef8d256e4dc1a3a9257511e prerequisite-patch-id: c60e8ef6fae62417c3430b7598b1a3d2a551be79 prerequisite-patch-id: 6a49484a6d154ddcd1b45b71a6be2c3542ae0be6 prerequisite-patch-id: 5aae62fa92c719fb65a8701ec4e1c4284bef7fd9 prerequisite-patch-id: 6943297d5f70f74bfcf5d5b26198423e428773d9 -- 2.25.1