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
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -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@ |
| 30 | identifier show, dev, attr, buf; | 30 | identifier show, dev, attr, buf; |
| 31 | expression BUF, SZ, FORMAT, STR; | 31 | expression BUF, SZ, FORMAT; |
| 32 | @@ | 32 | @@ |
| 33 | 33 | ||
| 34 | ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) | 34 | ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) |