[alsa-devel] [patch] ALSA: asihpi - fix return type of hpios_locked_mem_alloc()

Dan Carpenter dan.carpenter at oracle.com
Thu Mar 29 07:56:28 CEST 2012


I'm obviously in favour of using standard error codes where ever
possible.  But when I'm writing a change like this, then I do look
at the surrounding context because there are places the use custom
error codes (SCSI is an example).  In this case, I was confused
because there aren't any other error codes in this file, and also
the comment says that it should return -ENOMEM.

regards,
dan carpenter



More information about the Alsa-devel mailing list