[PATCH 1/1] riscv: Get cache information through sysconf

Zong Li zong.li@sifive.com
Thu Oct 29 17:08:15 GMT 2020


On Thu, Oct 29, 2020 at 5:32 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Okt 29 2020, Zong Li wrote:
>
> > +static bool
> > +getauxval2_einval (unsigned long int type, unsigned long int *result)
> > +{
> > +  int save_errno = errno;
> > +
> > +  __set_errno (0);
>
> There is no need to clear errno, since you no longer depend on its
> value.
>

Okay, only set error in the next version.

> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."


More information about the Libc-alpha mailing list