From: Cosmin Dragomir Date: Sun, 8 Mar 2015 10:30:14 +0000 (+0200) Subject: attribute_container: fix missing blank lines after declarations X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=481026dbe88bd42cae88ade3289f26d16e5168aa;p=linux-beck.git attribute_container: fix missing blank lines after declarations Found with checkpatch.pl Signed-off-by: Cosmin Dragomir Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 3ead3af4be61..2ba4cac080c5 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);