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>
const char *device_path,
struct udev_device *device)
{
- const char *subsystem = udev_device_get_subsystem (device);
+ const char *subsystem;
if (strcmp (action, "add") && strcmp (action, "change"))
return false;