Skip to content

Commit 173f6cd

Browse files
zhijianli88JuliaLawall
authored andcommitted
coccinelle: device_attr_show: Remove useless expression STR
Commit ff82e84 ("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 CC: Julia Lawall <Julia.Lawall@inria.fr> CC: Nicolas Palix <nicolas.palix@imag.fr> CC: cocci@inria.fr Fixes: ff82e84 ("coccinelle: device_attr_show: simplify patch case") Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
1 parent 6613476 commit 173f6cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/coccinelle/api/device_attr_show.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)
2828

2929
@rp depends on patch@
3030
identifier show, dev, attr, buf;
31-
expression BUF, SZ, FORMAT, STR;
31+
expression BUF, SZ, FORMAT;
3232
@@
3333

3434
ssize_t show(struct device *dev, struct device_attribute *attr, char *buf)

0 commit comments

Comments
 (0)