cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* Re: [cocci] [PATCH v2] coccinelle: device_attr_show: Remove useless expression STR
       [not found] <20240218080054.719008-1-lizhijian@fujitsu.com>
@ 2024-02-18  8:17 ` Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2024-02-18  8:17 UTC (permalink / raw)
  To: Li Zhijian; +Cc: linux-kernel, Nicolas Palix, cocci



On Sun, 18 Feb 2024, Li Zhijian wrote:

> 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 <Julia.Lawall@inria.fr>
> CC: Nicolas Palix <nicolas.palix@imag.fr>
> CC: cocci@inria.fr
> Fixes: ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case")
> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>

Applied to my tree

> ---
>  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 550d1d2fc02a..dfcf9304195f 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.29.2
>
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-18  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240218080054.719008-1-lizhijian@fujitsu.com>
2024-02-18  8:17 ` [cocci] [PATCH v2] coccinelle: device_attr_show: Remove useless expression STR Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).