History

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

Linus Torvalds committed 2 years ago

Commit ebc9bee2 parents 26bbcd6 173f6cd1 file · +1 −1Browse files

Unified · Split

scripts/coccinelle/api/device_attr_show.cocci+1−1
@@ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) · 27 unmodified lines
28 28
29@rp depends on patch@29@rp depends on patch@
30identifier show, dev, attr, buf;30identifier show, dev, attr, buf;
31expression BUF, SZ, FORMAT, STR;31expression BUF, SZ, FORMAT;
32@@32@@
33 33
34ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)34ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)