]> git.karo-electronics.de Git - linux-beck.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)
commita938fb1ef600c885f80e59b840a60894d16efb77
tree9e727e867b6dbd13b15a6491e16a7951e778df2c
parent26acaf08556a3c64ebf8ea3654b51e6acbb0a26c
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