driver core: platform: removed unneeded variable from __platform_driver_probe()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 08:24:58 +0000 (09:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 13:08:08 +0000 (14:08 +0100)
commitb4ce0bf7ab02c46676276ca1e8d4c5789528b439
tree5fe0b5cba32eda5e76e7cdca82e9ec8cf19f4323
parenta69ea7a76d52353b17d7bedf43818c2578517e9e
driver core: platform: removed unneeded variable from __platform_driver_probe()

In the reworking of the function __platform_driver_probe() over the
years, it turns out that the variable 'code' does not actually do
anything or mean anything anymore and can be removed to simplify the
logic when trying to read and understand what this function is actually
doing.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230131082459.301603-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/platform.c