diff options
| author | Zhang Rui <[email protected]> | 2023-01-12 14:43:36 +0800 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-02-03 09:57:01 +0100 |
| commit | 8a44d27542cd84352c69e37deaafb8b8976f21a0 (patch) | |
| tree | 1de8f8cd0443e41b510ea10815b1d4623e2b2fc1 /tools/power | |
| parent | 364ba3b7115087ab8960473a94cedc7336f345e2 (diff) | |
tools/power/x86/intel-speed-select: Remove duplicate dup()
Remove the duplicate dup() invocation.
Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/power')
| -rw-r--r-- | tools/power/x86/intel-speed-select/isst-daemon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-daemon.c b/tools/power/x86/intel-speed-select/isst-daemon.c index 4ad6a64f1545..c2290ef0e3af 100644 --- a/tools/power/x86/intel-speed-select/isst-daemon.c +++ b/tools/power/x86/intel-speed-select/isst-daemon.c @@ -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) |