unit: drop an unused assignment
Resolves: CID#1509244
This commit is contained in:
+1
-3
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user