Remove some dead code.
authorSascha Wildner <saw@online.de>
Sun, 6 Jan 2019 18:16:25 +0000 (19:16 +0100)
committerSascha Wildner <saw@online.de>
Sun, 6 Jan 2019 18:16:25 +0000 (19:16 +0100)
sbin/cryptdisks/cryptdisks.c
sbin/dhclient/dhclient.c

index 8b1c28e..573cf65 100644 (file)
@@ -380,7 +380,6 @@ entry_parser(char **tokens, char **options, int type)
                        if ((error = tc_api_task_set(tcplay_task, "dev", go.device))) {
                                fprintf(stderr, "tc_api_task_set dev failed\n");
                                goto tcplay_err;
-                               tc_api_uninit();
                        }
                        if ((error = tc_api_task_set(tcplay_task, "map_name",
                            go.map_name))) {
index 87f7580..b7c29fb 100644 (file)
@@ -1747,14 +1747,12 @@ priv_script_go(void)
        pid = fork();
        if (pid < 0) {
                error("fork: %m");
-               wstatus = 0;
        } else if (pid) {
                do {
                        wpid = wait(&wstatus);
                } while (wpid != pid && wpid > 0);
                if (wpid < 0) {
                        error("wait: %m");
-                       wstatus = 0;
                }
        } else {
                execve(scriptName, argv, envp);