* [PATCH] driver core: add missing blank line after declaration
@ 2015-03-08 10:48 Lavinia Tache
0 siblings, 0 replies; only message in thread
From: Lavinia Tache @ 2015-03-08 10:48 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Lavinia Tache
Found using checkpatch.pl
Signed-off-by: Lavinia Tache <lavinia.tachee@gmail.com>
---
drivers/base/driver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 9e29943..4eabfe2 100644
--- 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
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-08 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-08 10:48 [PATCH] driver core: add missing blank line after declaration Lavinia Tache
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®