[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1425810614-6624-1-git-send-email-cosmin.gabriel.dragomir@gmail.com>
Date: Sun, 8 Mar 2015 12:30:14 +0200
From: Cosmin Dragomir <cosmin.gabriel.dragomir@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
Cosmin Dragomir <cosmin.gabriel.dragomir@...il.com>
Subject: [PATCH] attribute_container: fix missing blank lines after declarations
Found with checkpatch.pl
Signed-off-by: Cosmin Dragomir <cosmin.gabriel.dragomir@...il.com>
---
drivers/base/attribute_container.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index 3ead3af..2ba4cac 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -94,6 +94,7 @@ int
attribute_container_unregister(struct attribute_container *cont)
{
int retval = -EBUSY;
+
mutex_lock(&attribute_container_mutex);
spin_lock(&cont->containers.k_lock);
if (!list_empty(&cont->containers.k_list))
@@ -349,6 +350,7 @@ int
attribute_container_add_class_device(struct device *classdev)
{
int error = device_add(classdev);
+
if (error)
return error;
return attribute_container_add_attrs(classdev);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists