summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-03-21 10:17:10 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-03-21 10:17:10 -0700
commitebc9bee8814d12ec247de117aa2f7fd39ff11127 (patch)
treec0c9f208a334825a3e2eeba5cc89b13e1f3b13d6 /scripts
parent26bbcd630f2f521e60d7ef0a58da188e766553ad (diff)
parent173f6cd384ae27bb57af8cc5201b4f4a137d6e55 (diff)
Merge tag 'cocci-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux
Pull coccinelle update from Julia Lawall: "Simplify the device_attr_show semantic patch Also removes an unused variable warning" * tag 'cocci-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux: coccinelle: device_attr_show: Remove useless expression STR
Diffstat (limited to 'scripts')
-rw-r--r--scripts/coccinelle/api/device_attr_show.cocci2
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)