mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
tools/power/x86/intel-speed-select: Remove duplicate dup()
Remove the duplicate dup() invocation. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
364ba3b711
commit
8a44d27542
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user