mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
device: remove unused null check
We dereference the variable right before the null check. We never reach this point with a null value anyway so let's just remove it.
This commit is contained in:
parent
889f25b2cc
commit
2bb9e6203d
@ -325,7 +325,7 @@ static int device_setup_unit(Manager *m, struct udev_device *dev, const char *pa
|
||||
fail:
|
||||
log_unit_warning_errno(u->id, r, "Failed to set up device unit: %m");
|
||||
|
||||
if (delete && u)
|
||||
if (delete)
|
||||
unit_free(u);
|
||||
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user