Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

CC: Julia Lawall <Julia.Lawall@inria.fr>
CC: Nicolas Palix <nicolas.palix@imag.fr>
CC: cocci@inria.fr
Fixes: ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>

authored by

Li Zhijian and committed by
Julia Lawall
173f6cd3 6613476e

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