projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
364ba3b
)
tools/power/x86/intel-speed-select: Remove duplicate dup()
author
Zhang Rui
<rui.zhang@intel.com>
Thu, 12 Jan 2023 06:43:36 +0000
(14:43 +0800)
committer
Hans de Goede
<hdegoede@redhat.com>
Fri, 3 Feb 2023 08:57:01 +0000
(09:57 +0100)
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>
tools/power/x86/intel-speed-select/isst-daemon.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/intel-speed-select/isst-daemon.c
b/tools/power/x86/intel-speed-select/isst-daemon.c
index 4ad6a64f1545c4d82fe7dc9df8112a845d28fdf7..c2290ef0e3af1797adf02f06f2302e5e9f788765 100644
(file)
--- 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)