diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 1868423355d95f..141413067b5ce2 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -713,8 +713,7 @@ struct devfreq *devfreq_add_device(struct device *dev, devfreq_remove_device(devfreq); devfreq = NULL; err_dev: - if (devfreq) - kfree(devfreq); + kfree(devfreq); err_out: return ERR_PTR(err); }