mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
unit: drop an unused assignment
Resolves: CID#1509244
This commit is contained in:
parent
9cf7f7a82f
commit
85773a7fd0
|
@ -2876,9 +2876,7 @@ int unit_watch_pid(Unit *u, pid_t pid, bool exclusive) {
|
|||
if (array[n] == u)
|
||||
found = true;
|
||||
|
||||
if (found) /* Found it already? if so, do nothing */
|
||||
r = 0;
|
||||
else {
|
||||
if (!found) {
|
||||
Unit **new_array;
|
||||
|
||||
/* Allocate a new array */
|
||||
|
|
Loading…
Reference in a new issue