提交 d34898de 编写于 作者: C Cosmin Tomulescu 提交者: Greg Kroah-Hartman

drivers: base: class: Add a blank line after declarations

This patch fixes the following warning found by checkpatch.pl:
WARNING: Missing a black line after declarations
Signed-off-by: NCosmin Tomulescu <cosmintom@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 481026db
...@@ -90,6 +90,7 @@ int class_create_file_ns(struct class *cls, const struct class_attribute *attr, ...@@ -90,6 +90,7 @@ int class_create_file_ns(struct class *cls, const struct class_attribute *attr,
const void *ns) const void *ns)
{ {
int error; int error;
if (cls) if (cls)
error = sysfs_create_file_ns(&cls->p->subsys.kobj, error = sysfs_create_file_ns(&cls->p->subsys.kobj,
&attr->attr, ns); &attr->attr, ns);
...@@ -488,6 +489,7 @@ ssize_t show_class_attr_string(struct class *class, ...@@ -488,6 +489,7 @@ ssize_t show_class_attr_string(struct class *class,
struct class_attribute *attr, char *buf) struct class_attribute *attr, char *buf)
{ {
struct class_attribute_string *cs; struct class_attribute_string *cs;
cs = container_of(attr, struct class_attribute_string, attr); cs = container_of(attr, struct class_attribute_string, attr);
return snprintf(buf, PAGE_SIZE, "%s\n", cs->str); return snprintf(buf, PAGE_SIZE, "%s\n", cs->str);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册