From 74642c6cd088e124c3cccbd5cb2f54984d6d4e1a Mon Sep 17 00:00:00 2001 From: Lavinia Tache Date: Sun, 8 Mar 2015 12:48:55 +0200 Subject: [PATCH] driver core: add missing blank line after declaration Found using checkpatch.pl Signed-off-by: Lavinia Tache Signed-off-by: Greg Kroah-Hartman --- drivers/base/driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 9e29943e56ca..4eabfe28d2b3 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 -- 2.20.1