drivers: base: class: Add a blank line after declarations
authorCosmin Tomulescu <cosmintom@gmail.com>
Sun, 8 Mar 2015 10:31:54 +0000 (12:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 13:36:19 +0000 (14:36 +0100)
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>
drivers/base/class.c

index f96f70419a785a722283336a4ca71a73015574b9..6e810881e48b09f0615250c8f2ca2dfdbb47c44e 100644 (file)
@@ -90,6 +90,7 @@ int class_create_file_ns(struct class *cls, const struct class_attribute *attr,
                         const void *ns)
 {
        int error;
+
        if (cls)
                error = sysfs_create_file_ns(&cls->p->subsys.kobj,
                                             &attr->attr, ns);
@@ -488,6 +489,7 @@ ssize_t show_class_attr_string(struct class *class,
                               struct class_attribute *attr, char *buf)
 {
        struct class_attribute_string *cs;
+
        cs = container_of(attr, struct class_attribute_string, attr);
        return snprintf(buf, PAGE_SIZE, "%s\n", cs->str);
 }