]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: asihpi - fix return type of hpios_locked_mem_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Mar 2012 06:57:02 +0000 (09:57 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Mar 2012 16:49:49 +0000 (18:49 +0200)
commit38c1401ed755130b4706dbb449c4310a7a66b335
tree9e727e867b6dbd13b15a6491e16a7951e778df2c
parentf7679363bf474160320d234eb536a82f38a8ecaf
ALSA: asihpi - fix return type of hpios_locked_mem_alloc()

This function returns zero or -ENOMEM, but because it's type is u16, the
-ENOMEM gets changed to 65524.  None of the callers care, but lets fix
it anyway as a cleanup.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpi_internal.h
sound/pci/asihpi/hpios.c