Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2400310lqp; Sun, 24 Mar 2024 17:54:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMgWfasdss0miVT2L7Vm3/oxJY4UwzHaetuyJVuHpcv7EUI3Vy8hj3HWJOj1J8pyWO5zkKrIr5kWESPcSVcD7rAevPp/zEXClRBeloFA== X-Google-Smtp-Source: AGHT+IHtGnR8GeXnpxbwrFCQYe6tjiqGyW8sesKzDAQ3i+NcQ4KZ6ydpedoMVYy1GqW6Sd3A2vXs X-Received: by 2002:a67:fc57:0:b0:476:b49f:2478 with SMTP id p23-20020a67fc57000000b00476b49f2478mr4009935vsq.15.1711328071180; Sun, 24 Mar 2024 17:54:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328071; cv=pass; d=google.com; s=arc-20160816; b=PpPSegwTanPhchto99C9p66eXpDYX/KmmPQu6hnCAO/KQMZNjrzMJro6WbVM1z5QXM TD6TjACyLOOWepyxm550rnCQIYoNQXvbLsjB5eF39VdUe9I9mA/lYULOLCbPjNCrT71M DzDl721ltJTo5pP78ziCxUjHDn86AsygZDRtJhfNEonSk/1d5gfJ65/MrM+b966wcmOB a0GdTZKHI2O1SEDqFHXPUujhT2+asQz2cgVnXBydf1pDrhNwzQS/5KZ5hO6SqAQbjXYk hhnfBzN1oYxZJaC8+AGc8DsvBsICPhk/v0eOQKxmLiTfcE9fFSsw8oi+hfJMgEie1MpT SecQ== 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=TwH3j6d1uOMscNk4WIL9AfBr/XCmhusUgHAl2SP2Kss=; fh=TgZzW1OmmH4sOcVJnJfVXIoBP3/kyeQCvAzrSAd+HyE=; b=pL3xriiRnccKbXmkoWGEGHwkRic+5qLZRGlyt7/Y0Bhi4K8H4o29iMP0vDU/qsYkO6 tNplsBlI0ttGNoA232YzEaQixV/8WyxyJYq6FEQrKhbg6K3NdI0cOqsNd8TzwM+rOTv6 9lao4qt4bBsNBPJcWqkavJGbKQLDX0FYRB0EN1K8d01iQ8EoDu8fU4FilcHswtGoJmWu X14PXtPHUKimMsSxvOEy+vPOOv/gcZFvc5dBz7sTDn1D9A4ZgmLBmvqiMi9x6iRP+Jkq q5oX4TISCNRXJWhcqmomNetWpg7sGvLdnwdPw8UcZhZzliCUVIay3lk+WY0rWL3ZeH58 XDFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZejAGNYJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c3-20020ad45ae3000000b006968bb7eb8esi1461686qvh.510.2024.03.24.17.54.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZejAGNYJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113513-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E2CA61C242FE for ; Mon, 25 Mar 2024 00:54:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DBEA13D89F; Sun, 24 Mar 2024 22:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZejAGNYJ" 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 78FF41BB722; Sun, 24 Mar 2024 22:45:14 +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=1711320314; cv=none; b=grBI5ovv+JfqETxoNw2ueNOVbsbm2Jsr1ZP4hJljHFnqBpJuqH9epRIpEnhronivM5h6VyeEh/0kADU02VERJpTm0i3+KoWmzcZn6tcFxCLA/bAHTg08r6wiOl/4tmtF03FtQ+CtD9/idp0jEpvS2YgQulgDNoqtXI8SwN7lBSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320314; c=relaxed/simple; bh=EVF5sdG0klNtYkoUeJztrDyKdX6LhfnuSa4F8ZYnt8I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YAJmEwD1QbEunpw0Bg2SWbUjODEXgVPkqc0mRDiPHv82CTs8WrhDJCITSTiFoLs2WcSrMdz6DA/GqT5OQVBrITvVG80f/Qplmla6MzZsw6QLNueLsPKX8LDVHCWw0N2ilevZ6q1in/kKifAy59vDBGWMSkn22boaHORgrI8F7JA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZejAGNYJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A993C43394; Sun, 24 Mar 2024 22:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320314; bh=EVF5sdG0klNtYkoUeJztrDyKdX6LhfnuSa4F8ZYnt8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZejAGNYJctG0hpBh4Su0Q9ZVqLGbAgGWGvKqDil38IWoXFL3gQCsEqrCASwsz3wmy 5pTkadd3Ot9SNj+fuYvvRwkhoZYLXoKL1PcDq+Q7/pYAjhtg7HJtZoLRAqSbTe2eOh 5Pmz/z9XBZGX8Nis73iPy3IqukO0OYAtFyJxp1iQz7aqUYGsHWlWYLpuZWdtZZQUxo ucM+d0ciqzufynKoQCSS+F5fHFqqdW8s9bW1umV/NEBDjvYPPnXzhnl+3szinFevT+ 3wn2oq/2AGc7vcwKTWxdFRzCiPW8lDG5TCaYXdS+VWx7IP1ufiULvcL7a8ndF2GAvJ cc5owixOJ9qjg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Li Zhijian , Julia Lawall , Nicolas Palix , cocci@inria.fr, Sasha Levin Subject: [PATCH 6.8 622/715] coccinelle: device_attr_show: Remove useless expression STR Date: Sun, 24 Mar 2024 18:33:21 -0400 Message-ID: <20240324223455.1342824-623-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Li Zhijian [ Upstream commit 173f6cd384ae27bb57af8cc5201b4f4a137d6e55 ] Commit ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case") simplifies the patch case, as a result, STR is no longer needed. This also helps to fix below coccicheck warning: > warning: rp: metavariable STR not used in the - or context code CC: Julia Lawall CC: Nicolas Palix CC: cocci@inria.fr Fixes: ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case") Signed-off-by: Li Zhijian Signed-off-by: Julia Lawall Signed-off-by: Sasha Levin --- scripts/coccinelle/api/device_attr_show.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coccinelle/api/device_attr_show.cocci b/scripts/coccinelle/api/device_attr_show.cocci index 550d1d2fc02a9..dfcf9304195f3 100644 --- a/scripts/coccinelle/api/device_attr_show.cocci +++ b/scripts/coccinelle/api/device_attr_show.cocci @@ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) @rp depends on patch@ identifier show, dev, attr, buf; -expression BUF, SZ, FORMAT, STR; +expression BUF, SZ, FORMAT; @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) -- 2.43.0