]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-device-manager: Fix double-assignment of subsystem
authorHans de Goede <hdegoede@redhat.com>
Mon, 28 Feb 2022 15:17:53 +0000 (16:17 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 28 Feb 2022 15:28:41 +0000 (16:28 +0100)
commitda821831d69513998c92d09341cef314c1a36354
tree9907318eb35cb8127ee1da88f6d839f35dac591b
parent07a7a1c7eebfa9220093b6f1ec0def354a669249
ply-device-manager: Fix double-assignment of subsystem

The subsystem variable is also initialized with udev_device_get_subsystem ()
a couple of lines lower.

Remove the first initialization, so that udev_device_get_subsystem ()
does not get called unnecessary when the function exits early because
of the action value.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-core/ply-device-manager.c