Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1242166ybh; Thu, 16 Jul 2020 07:05:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkp2ZqZS1fD7EU3CU6cDofZL94laPtr4xSO1OIbLIbxvgrGzlHQslF58Hc+HKZgljPHJqX X-Received: by 2002:a17:906:6558:: with SMTP id u24mr1426700ejn.364.1594908340276; Thu, 16 Jul 2020 07:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594908340; cv=none; d=google.com; s=arc-20160816; b=qhY3Wrq+gB+Ac2o0x15zP8QLcHI1fsWFIAfKBlevQcsU98OVx5q7oeIAGS8Rvmmu9m qCFCJVBYnafblttJ5PXu+/ai3O1gUBW/RxDYQURSrhj2tafgnjGwO9c+DimUowJheZzg v2sDAQvDPo2X4Mx+WqKEf7knpbphEa05cRiS4f0S6t6RZ8WfcflV7SIR8MhxUDD2Z/KM d8anZnJSJ65elxyR6Y9ylMI/IN9amDCo5fX4IRq/CeNerlNKo1XxHZfQ43Oicu0jrsg6 ZeWsSsrQNWBwoPj+d3vSHQWOS60AlLAXIL2avpUZ7aAGiWVgKhAp/sgUF9RF4cWxCgLW q+Vw== 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:date:subject:cc:to:from :dkim-signature; bh=orBUHy/BGmffZA4LA+ipGScBGUJn7fYfkbVAM8m+aww=; b=nt0N0ScG/kEMjn3XhZiTVALITxtH3qa285BfY1JYcSz688b5YWGRMRfZUY05f88XHT 8FNTHC6Gtju0mZphzQ86FQzWsg0PoVE3guQBU9mlUo4GtUMCj3gF31fenBiUx0gawtWJ 0oH2GCCV6mHeR78js+9vq50P62947s4j5jQJlq1FYe+OwPIzN4WvUPRx0kKLoKWFzgKS eb/nJnsqfuk3XljpOgu+zkPWAH7btb/cn4ifW9JGYRtGaProiZcN+Ta1CJEGiBqSqS0a iqF8J5l3vz8UCQSXYDPWOPDUmHWA5Al9Hs88mcNYJyyNx0akz7sx3VTXRMe8RWDv1jAO Q2nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lIgBjCAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw25si2931919edb.203.2020.07.16.07.05.16; Thu, 16 Jul 2020 07:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lIgBjCAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729100AbgGPN7i (ORCPT + 99 others); Thu, 16 Jul 2020 09:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729090AbgGPN7e (ORCPT ); Thu, 16 Jul 2020 09:59:34 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66609C08C5C0 for ; Thu, 16 Jul 2020 06:59:34 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q5so7173187wru.6 for ; Thu, 16 Jul 2020 06:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=orBUHy/BGmffZA4LA+ipGScBGUJn7fYfkbVAM8m+aww=; b=lIgBjCArdEpGcSjo1Rtyqs2OSMZAreCnZeJRzKDgcP3CvY/5Xd0NYDupYFjKFwfWM5 8NTez5a0+GP2x5yjemlpLB+aTTjQ8S/dqgLBGoRHH1TirXWad94K54nYcZY5/E/HogpY Pa0szhtyvxV7eswEIeRtZGLcXBcTnM8d098PbdOkekwkzEqrrpOPEjcBBsk9PQdq8x7l vN7XrcDk9k5slv9pZz8JLLhKPWH5mgn37I/ifQZjH20DkFWId3KtsmI853Spb2u3OD/8 XZthh5TsJnei/DNdFfuLF9sII/FWEpg4Ddo+zhujsBMvEcNZa1ReZeoKjd8zy3mQP0kk KhkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=orBUHy/BGmffZA4LA+ipGScBGUJn7fYfkbVAM8m+aww=; b=Eiv19cjUfgMIFHivKxSRf7oC5aMl7513BOQ6HsPsHjR8qtRfZHeGLWt7xLqtNJWCtN 5huIUhnMzovfWK0T4+pYxSXBwYGSJVS8z/AZ4Qto+SPYFYPPt42WZa2d3pn8wzrrIZhC akpXU0BP3fNeGbhqNdIwWdetHwG++2jBg6KjQgUUc4BnQgJ6DjNpsFXkZUNTG4s2c/2H fb/hCGAKnZycOL/NY5q3feX+6bJwiV9xJPiDJYduwA14wwWMhwO4fl7uE0QyjpYVM+ps lpu4iaNQV9Riq7Bbt8ZPYm35nhS5/HTgVaFevI1/VHWGSHmtR1TA3Mb8yj21NaW7mL5m qJag== X-Gm-Message-State: AOAM532NT7UjxA9tpcy9VqBRHy8pH/l09Vzwsbm/5mkA9/xJXohJpwgB uVhddu9RJmCCNgZ2Klx7muSXOw== X-Received: by 2002:a5d:66ca:: with SMTP id k10mr5162237wrw.244.1594907973157; Thu, 16 Jul 2020 06:59:33 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id x18sm9351001wrq.13.2020.07.16.06.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 06:59:32 -0700 (PDT) From: Lee Jones To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Lee Jones , Michael Hennerich Subject: [PATCH 01/30] iio: adc: ad_sigma_delta: Remove unused variable 'ret' Date: Thu, 16 Jul 2020 14:58:59 +0100 Message-Id: <20200716135928.1456727-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200716135928.1456727-1-lee.jones@linaro.org> References: <20200716135928.1456727-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/iio/adc/ad_sigma_delta.c: In function ‘ad_sd_trigger_handler’: drivers/iio/adc/ad_sigma_delta.c:405:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 405 | int ret; | ^~~ Cc: Michael Hennerich Signed-off-by: Lee Jones --- drivers/iio/adc/ad_sigma_delta.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c index dd3d54b3bc8bb..f269b926440da 100644 --- a/drivers/iio/adc/ad_sigma_delta.c +++ b/drivers/iio/adc/ad_sigma_delta.c @@ -402,7 +402,6 @@ static irqreturn_t ad_sd_trigger_handler(int irq, void *p) unsigned int reg_size; unsigned int data_reg; uint8_t data[16]; - int ret; memset(data, 0x00, 16); @@ -419,14 +418,12 @@ static irqreturn_t ad_sd_trigger_handler(int irq, void *p) case 4: case 2: case 1: - ret = ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, - &data[0]); + ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, &data[0]); break; case 3: /* We store 24 bit samples in a 32 bit word. Keep the upper * byte set to zero. */ - ret = ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, - &data[1]); + ad_sd_read_reg_raw(sigma_delta, data_reg, reg_size, &data[1]); break; } -- 2.25.1