Message ID | bb7238001d973a935939a59896263ace05d842ab.1489733584.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | 35dbf4efb044fbe4096a5edbb449e894aca9ef50 |
Headers | show |
diff --git a/drivers/base/core.c b/drivers/base/core.c index 684bda4d14a1..5fc1a50f7577 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1612,7 +1612,7 @@ int device_private_init(struct device *dev) */ int device_add(struct device *dev) { - struct device *parent = NULL; + struct device *parent; struct kobject *kobj; struct class_interface *class_intf; int error = -EINVAL;
'parent' is always overwritten before getting used and there is no need to initialize it with NULL. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.12.0.432.g71c3a4f4ba37