diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-02-18 11:00:54 +0300 |
---|---|---|
committer | Julia Lawall <Julia.Lawall@inria.fr> | 2024-02-18 11:19:35 +0300 |
commit | 173f6cd384ae27bb57af8cc5201b4f4a137d6e55 (patch) | |
tree | 68d17029a6607eb685d218b3f85ac159b7376d71 /scripts/coccinelle | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) | |
download | linux-173f6cd384ae27bb57af8cc5201b4f4a137d6e55.tar.xz |
coccinelle: device_attr_show: Remove useless expression STR
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>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Diffstat (limited to 'scripts/coccinelle')
-rw-r--r-- | scripts/coccinelle/api/device_attr_show.cocci | 2 |
1 files changed, 1 insertions, 1 deletions
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) |