]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine-pool: drop unnecessary condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:49:56 +0000 (13:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:49:56 +0000 (13:49 +0900)
src/shared/machine-pool.c

index 53c5609f9bb2b9370dd3ddacee02f2dc12ceb63c..4fedeb17e3665d56a04bdb33a5d1f09c7dbb6cc8 100644 (file)
@@ -314,8 +314,7 @@ fail:
                 loop = safe_close(loop);
         }
 
-        if (control >= 0 && nr >= 0)
-                (void) ioctl(control, LOOP_CTL_REMOVE, nr);
+        (void) ioctl(control, LOOP_CTL_REMOVE, nr);
 
         return r;
 }