Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp363791lqh; Sat, 4 May 2024 04:41:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2j6nH9gFBsUP9hZwE/uWC1l7ykgtNRd5w/9GFNLBDqq6p5wrET0C18qGCpNIEP3DYMaJMCi97IyM0k9sZUJSAyw7G0pEf8Y4twg8+IQ== X-Google-Smtp-Source: AGHT+IH+NB25AADDJ9lmF2+9KZM0z7Als/VAnp5MCq7O424tP9zgJRXLZm0YLYzilj4FdxyUGaE7 X-Received: by 2002:a17:907:7e94:b0:a58:8827:f85a with SMTP id qb20-20020a1709077e9400b00a588827f85amr7515990ejc.25.1714822915393; Sat, 04 May 2024 04:41:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714822915; cv=pass; d=google.com; s=arc-20160816; b=SzyRdZpv9xj6B6+0z2Q2emIjJPSxNg3/lbD87ai8H25ngVNuL9asQsZgdGFdiVtzjt H6L1Cy+pLC+Qyp2fuB/zioHEjPVR7v9X1nnuPwemKVTuZoO1RL9WOqaqq9PVVtc7if+e ca6tJCiymf+6Cv6lbv9GGzf+4qfOcCujcCky47WLmEDJbomlz/sLsVu1w5O6iOdpX5Vt /+M3ZJukuIyCNOHpwXcVJ95rcdhbebmx5s5r42oRPeciVAXse4jShTqF+1A2pfWxBQDu CMsl+b8Ul37ypQiF3zfk195cFWKEqJSVSwzv8pW8qBie1BxvY5bfxYqVcf9us05ry2+a Tjkw== 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=ItjywULbsnbDfcn1JRBTF+hS+AZ3DooTCTRu4GqZvWI=; fh=X2k1mnbm12CReEXWudqYFD/phwTVrHjp2JI0w/ZXQfU=; b=Q/HuvvTLSWKuHSd+eXjw8ISuh3+yjglPN6lqzlB6x2i3d5F7nb9/CwZbX3IO6LZUSl isais7T0i8YUMKSt/G6HgzGYkwoRhyVr6E3uE4gUccG+UVu5TIlQI9zwniOnlKbZxcAQ jl2DaTA5VSIgrkkfHW4/n61MJchGdw+F4RaqNmu4Ct1f3OkI8Q0+rzSzQF45Aubq1abz CKizRlAFgImk2A+QaVYHVAoBbHi1l52cjoLyS1HOiqxPgP0qyB2rb34T/p0PKopf04ag RV4bz00kszvgVyrp5RewYgzqaRM0G12vKHPsPoaa+zXusxPgCipK6PCbBMA7OxO9qzSB uwFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qySZHPI3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168614-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 bf2-20020a170907098200b00a59a16e81ccsi939098ejc.606.2024.05.04.04.41.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168614-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=qySZHPI3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168614-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 22FF91F21FD9 for ; Sat, 4 May 2024 11:41:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E30220335; Sat, 4 May 2024 11:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qySZHPI3" 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 3A51210A3D; Sat, 4 May 2024 11:41:43 +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=1714822904; cv=none; b=dyxFYRAMjho/1GxH8mpRLmXUrC5NdtGTQBRpd/3p4EcDseJug34BIwSfw07HqHqCqN2FVuCG7fhx3LwB8pX30qfe6orVoN33YhvChylpkHII6wnLTAkT4h4/1EaboUSZ28VnYCe9fWJV/tJ7NtVg8vwiKQ3zpHwX+Mj1WQpRV8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714822904; c=relaxed/simple; bh=RbSToE/SPz2M6tN7QkqPPKcGZsMzIJzMKsTKU9zMKD4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WMoQ4eWdE96WWzyj9diiwLiUw3Y3UZ/lFvGAJzlQLUF/zI0gJEeMs3nVj56fm5hSbMMvFVzOAqWBICTuY27zG+75GYMFeKP29AHRDpT8mNHv5DbndnXb6PrBSzGV47r1Ex169JCXC8N6jZVwn49eFcLbT+H74M3nM+Et8BxN5Co= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qySZHPI3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D96AAC072AA; Sat, 4 May 2024 11:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714822903; bh=RbSToE/SPz2M6tN7QkqPPKcGZsMzIJzMKsTKU9zMKD4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qySZHPI35YIJeqrOlhqMSJnYrI5Sh9csLXtqWrmnRZs2hy4rQD8wLZpCxME+TvYtc JToTa+nUgzJ5tyyOBxnvL/DxcWnfAhvbhhfqtTlInoOfEgPN8a1D9q1ot2CRuCGj6S rxG53f6djeuIEpPSvKJqCJiM3u/oBCblekjxTdYxZPw/EDbRYSkaVq5xjD+Es0Zv1+ T531NRncUPiBLsDOVQ/3BOfPU8vUHXTUfZvIqz/bMNG+bPujjXNyvdhpfch+2972d+ WO12OtA8V7ncdTqTkPydJPsEjHHzCFqyhkvyh4nLw5Ac8vE2vpWVXxpo0sH9nvwrgk wd0im14MIUTzA== Date: Sat, 4 May 2024 12:41:31 +0100 From: Jonathan Cameron To: Christophe JAILLET Cc: Peter Rosin , Lars-Peter Clausen , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: multiplexer: Remove an unused field in struct mux Message-ID: <20240504124131.6c6e3e8e@jic23-huawei> In-Reply-To: <7bb04abdc2815caf090a6c9ecab2a51d837792a7.1714556499.git.christophe.jaillet@wanadoo.fr> References: <7bb04abdc2815caf090a6c9ecab2a51d837792a7.1714556499.git.christophe.jaillet@wanadoo.fr> 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, 1 May 2024 11:41:54 +0200 Christophe JAILLET wrote: > In "struct mux", the 'indio_dev' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Signed-off-by: Christophe JAILLET Applied, Thanks, > --- > Compile tested only. > > It was added in the initial commit 7ba9df54b091 ("iio: multiplexer: new iio > category and iio-mux driver") but was never used. > --- > drivers/iio/multiplexer/iio-mux.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/multiplexer/iio-mux.c b/drivers/iio/multiplexer/iio-mux.c > index edd8c69f6d2e..2953403bef53 100644 > --- a/drivers/iio/multiplexer/iio-mux.c > +++ b/drivers/iio/multiplexer/iio-mux.c > @@ -30,7 +30,6 @@ struct mux { > int cached_state; > struct mux_control *control; > struct iio_channel *parent; > - struct iio_dev *indio_dev; > struct iio_chan_spec *chan; > struct iio_chan_spec_ext_info *ext_info; > struct mux_child *child;