diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-01-12 09:43:36 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-03 11:57:01 +0300 |
commit | 8a44d27542cd84352c69e37deaafb8b8976f21a0 (patch) | |
tree | 1de8f8cd0443e41b510ea10815b1d4623e2b2fc1 /tools/power | |
parent | 364ba3b7115087ab8960473a94cedc7336f345e2 (diff) | |
download | linux-8a44d27542cd84352c69e37deaafb8b8976f21a0.tar.xz |
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>
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) |