diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-01-12 07:43:36 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-03 09:57:01 +0100 |
commit | 8a44d27542cd84352c69e37deaafb8b8976f21a0 (patch) | |
tree | 1de8f8cd0443e41b510ea10815b1d4623e2b2fc1 /tools/power | |
parent | tools/power/x86/intel-speed-select: Handle open() failure case (diff) | |
download | linux-8a44d27542cd84352c69e37deaafb8b8976f21a0.tar.xz linux-8a44d27542cd84352c69e37deaafb8b8976f21a0.zip |
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) |