projects/linux·commit ebc9bee8

Merge tag 'cocci-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

ebc9bee8 · Linus Torvalds <[email protected]> · 2024-03-21 10:17:10 -07:00

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
Commit
ebc9bee8814d12ec247de117aa2f7fd39ff11127
Parents
26bbcd63 · 173f6cd3

Merge commit. Changes below are compared with the first parent: 26bbcd63.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
scripts/coccinelle/api/device_attr_show.coccimodified+1−1View file

scripts/coccinelle/api/device_attr_show.cocci

View file
diff --git a/scripts/coccinelle/api/device_attr_show.cocci b/scripts/coccinelle/api/device_attr_show.cocci
index 550d1d2..dfcf930 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)