Skip to content

Commit

Permalink
attribute_container: fix missing blank lines after declarations
Browse files Browse the repository at this point in the history
Found with checkpatch.pl

Signed-off-by: Cosmin Dragomir <cosmin.gabriel.dragomir@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Cosmin Dragomir authored and Greg Kroah-Hartman committed Mar 25, 2015
1 parent 3d3af6a commit 481026d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/attribute_container.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 481026d

Please sign in to comment.