[PATCH 1/2] elf: inline lose for error handling

Szabolcs Nagy szabolcs.nagy@arm.com
Tue Dec 15 10:04:52 GMT 2020


The 12/14/2020 15:07, Adhemerval Zanella via Libc-alpha wrote:
> On 11/12/2020 13:35, Szabolcs Nagy via Libc-alpha wrote:
> > +	lose:
> > +	  /* The file might already be closed.  */
> > +	  if (fd != -1)
> > +	    (void) __close_nocancel (fd);
> 
> I think you can remove the (void) cast here.	

hm yes i will remove that void. there seem to be

  __close_nocancel

and

  __close_nocancel_nostatus

as well with the only diffeence that the latter has void return.

i think this can be cleaned up to only use __close_nocancel.


More information about the Libc-alpha mailing list