Home
last modified time | relevance | path

Searched hist:"36 cf3b13" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/base/
H A Dplatform.c36cf3b13 Fri Mar 01 06:24:47 CST 2019 Johannes Berg <johannes.berg@intel.com> driver core: platform: remove misleading err_alloc label

In platform_device_register_full() the err_alloc label is
misleading, we only ever jump to it if the pdev is NULL,
but it then proceeds to free it, which is a no-op.

Remove the label and simply exit the function immediately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
36cf3b13 Fri Mar 01 06:24:47 CST 2019 Johannes Berg <johannes.berg@intel.com> driver core: platform: remove misleading err_alloc label

In platform_device_register_full() the err_alloc label is
misleading, we only ever jump to it if the pdev is NULL,
but it then proceeds to free it, which is a no-op.

Remove the label and simply exit the function immediately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>