mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix variable check in sparc clock frequency probing.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
This commit is contained in:
committed by
David S. Miller
parent
a9e8e0e0f3
commit
c7a6ab72e9
@ -126,7 +126,7 @@ __get_clockfreq_via_proc_openprom (void)
|
||||
|
||||
__stpcpy (prop, "/clock-frequency");
|
||||
clkfreq_fd = open (node, O_RDONLY);
|
||||
if (fd != -1)
|
||||
if (clkfreq_fd != -1)
|
||||
{
|
||||
if (read (clkfreq_fd, type_string,
|
||||
sizeof (type_string)) > 0)
|
||||
|
Reference in New Issue
Block a user