diff options
author | Cosmin Tomulescu <cosmintom@gmail.com> | 2015-03-08 06:31:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-25 09:36:19 -0400 |
commit | d34898de9a43bf79b274c8c6a43bf2f6f76dac05 (patch) | |
tree | ea4ab62deec3db76bd5c7cc63f9c80a06503cb56 | |
parent | 481026dbe88bd42cae88ade3289f26d16e5168aa (diff) |
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: Cosmin Tomulescu <cosmintom@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index f96f70419a78..6e810881e48b 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
@@ -90,6 +90,7 @@ int class_create_file_ns(struct class *cls, const struct class_attribute *attr, | |||
90 | const void *ns) | 90 | const void *ns) |
91 | { | 91 | { |
92 | int error; | 92 | int error; |
93 | |||
93 | if (cls) | 94 | if (cls) |
94 | error = sysfs_create_file_ns(&cls->p->subsys.kobj, | 95 | error = sysfs_create_file_ns(&cls->p->subsys.kobj, |
95 | &attr->attr, ns); | 96 | &attr->attr, ns); |
@@ -488,6 +489,7 @@ ssize_t show_class_attr_string(struct class *class, | |||
488 | struct class_attribute *attr, char *buf) | 489 | struct class_attribute *attr, char *buf) |
489 | { | 490 | { |
490 | struct class_attribute_string *cs; | 491 | struct class_attribute_string *cs; |
492 | |||
491 | cs = container_of(attr, struct class_attribute_string, attr); | 493 | cs = container_of(attr, struct class_attribute_string, attr); |
492 | return snprintf(buf, PAGE_SIZE, "%s\n", cs->str); | 494 | return snprintf(buf, PAGE_SIZE, "%s\n", cs->str); |
493 | } | 495 | } |