提交 423a8a6e 编写于 作者: S Simo Koskinen 提交者: Greg Kroah-Hartman

staging: comedi: coding style fixes found by checkpatch.pl

The patch removes "WARNING: Prefer using '"%s...", __func__'
to using 'xxxxxxxx', this function's name, in a string" warnings
reported by checkpatch.pl script.
Signed-off-by: NSimo Koskinen <koskisoft@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d894e25b
...@@ -995,12 +995,12 @@ int comedi_auto_config(struct device *hardware_device, ...@@ -995,12 +995,12 @@ int comedi_auto_config(struct device *hardware_device,
int ret; int ret;
if (!hardware_device) { if (!hardware_device) {
pr_warn("BUG! comedi_auto_config called with NULL hardware_device\n"); pr_warn("BUG! %s called with NULL hardware_device\n", __func__);
return -EINVAL; return -EINVAL;
} }
if (!driver) { if (!driver) {
dev_warn(hardware_device, dev_warn(hardware_device,
"BUG! comedi_auto_config called with NULL comedi driver\n"); "BUG! %s called with NULL comedi driver\n", __func__);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册