History

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

Li Zhijian committed 2 years ago

Commit 173f6cd1 parent 66134761 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t