]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: bebob: Use a signed return type for get_formation_index
authorLucas Tanure <tanure@linux.com>
Mon, 25 Jan 2016 21:30:23 +0000 (19:30 -0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Jan 2016 10:38:53 +0000 (11:38 +0100)
commitd8855d7d76aa66c041ccc091e4984b41993b9e17
treebd97b0dc55b987fa1b1b4d823ab95253020dfdf5
parentc8e51187c227c11badc64f5c6463c1e259c8b411
ALSA: bebob: Use a signed return type for get_formation_index

The return type "unsigned int" was used by the get_formation_index function
despite of the aspect that it will eventually return a negative error code.
So, change to signed int and get index by reference in the parameters.

Done with the help of Coccinelle.

[Fix the missing braces suggested by Julia Lawall -- tiwai]

Signed-off-by: Lucas Tanure <tanure@linux.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_stream.c