Commit 8a44d275 authored by Zhang Rui's avatar Zhang Rui Committed by Hans de Goede

tools/power/x86/intel-speed-select: Remove duplicate dup()

Remove the duplicate dup() invocation.
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 364ba3b7
......@@ -176,9 +176,6 @@ static void daemonize(char *rundir, char *pidfile)
i = open("/dev/null", O_RDWR);
if (i < 0)
exit(EXIT_FAILURE);
ret = dup(i);
if (ret == -1)
exit(EXIT_FAILURE);
ret = dup(i);
if (ret == -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment