Skip to content

Commit

Permalink
driver core: add missing blank line after declaration
Browse files Browse the repository at this point in the history
Found using checkpatch.pl
Signed-off-by: Lavinia Tache <lavinia.tachee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Lavinia Tache authored and Greg Kroah-Hartman committed Mar 25, 2015
1 parent 518d3f3 commit 74642c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74642c6

Please sign in to comment.