]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-lib: Use ARRAY_SIZE() instead of sizeof() for correct loop limit
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 27 May 2014 15:14:36 +0000 (00:14 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 May 2014 15:34:27 +0000 (17:34 +0200)
commitb45c8b27616379c33cf9b262e6bb81b1e0482633
tree973497090eeec0ad42e8062f47cda1db0b23bb7f
parent35c4a55ee7e9d5003b035b86b82d4d35cd16b654
ALSA: firewire-lib: Use ARRAY_SIZE() instead of sizeof() for correct loop limit

This commit fixes a big for loop count with array. The limitation of loop
count should be calcurated with the number of elements in the array, not
with the number of bytes.

Aditionally, this commit apply the same declaration as a prototype in header
for the array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp.c