Problem found using checkpatch.pl script.

Signed-off-by: Lavinia Tache <lavinia.tac...@gmail.com>
---
 Changes since v1: fix commit message as per Greg's suggestion

 drivers/base/driver.c |  1 +
 drivers/base/soc.c    | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 9e29943..4eabfe2 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -103,6 +103,7 @@ int driver_create_file(struct device_driver *drv,
                       const struct driver_attribute *attr)
 {
        int error;
+
        if (drv)
                error = sysfs_create_file(&drv->p->kobj, &attr->attr);
        else
diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 72b5e72..39fca01 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -43,8 +43,8 @@ struct device *soc_device_to_device(struct soc_device 
*soc_dev)
 }
 
 static umode_t soc_attribute_mode(struct kobject *kobj,
-                                 struct attribute *attr,
-                                 int index)
+                               struct attribute *attr,
+                               int index)
 {
        struct device *dev = container_of(kobj, struct device, kobj);
        struct soc_device *soc_dev = container_of(dev, struct soc_device, dev);
@@ -60,7 +60,7 @@ static umode_t soc_attribute_mode(struct kobject *kobj,
                return attr->mode;
        if ((attr == &dev_attr_soc_id.attr)
            && (soc_dev->attr->soc_id != NULL))
-               return attr->mode;
+               return attr->mode;
 
        /* Unknown or unfilled attribute. */
        return 0;
@@ -117,7 +117,7 @@ struct soc_device *soc_device_register(struct 
soc_device_attribute *soc_dev_attr
 
        soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL);
        if (!soc_dev) {
-               ret = -ENOMEM;
+               ret = -ENOMEM;
                goto out1;
        }
 
@@ -135,7 +135,7 @@ struct soc_device *soc_device_register(struct 
soc_device_attribute *soc_dev_attr
        } while (ret == -EAGAIN);
 
        if (ret)
-                goto out2;
+               goto out2;
 
        soc_dev->attr = soc_dev_attr;
        soc_dev->dev.bus = &soc_bus_type;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to