projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518d3f3
)
driver core: add missing blank line after declaration
author
Lavinia Tache
<lavinia.tachee@gmail.com>
Sun, 8 Mar 2015 10:48:55 +0000
(12:48 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 13:36:30 +0000
(14:36 +0100)
Found using checkpatch.pl
Signed-off-by: Lavinia Tache <lavinia.tachee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/driver.c
patch
|
blob
|
history
diff --git
a/drivers/base/driver.c
b/drivers/base/driver.c
index 9e29943e56cae1d18d9dfcf3564baf4f839f087a..4eabfe28d2b39a89955ef820c3b069ba7d3b79e3 100644
(file)
--- 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