diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-12-29 19:41:44 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-30 16:41:55 +0100 |
commit | 599ee3291ae88700749e2910a11d1c0f0532355e (patch) | |
tree | 5ac39478682e3aa5d33d47bc871726c7d4578822 /sound/core/oss | |
parent | cd9978f1d3dbb9596a7ab9c652cb0d9b355489b5 (diff) | |
download | op-kernel-dev-599ee3291ae88700749e2910a11d1c0f0532355e.zip op-kernel-dev-599ee3291ae88700749e2910a11d1c0f0532355e.tar.gz |
ALSA: pcm: Use __ffs() instead of ffs() in snd_mask_min()
The difference between __ffs and ffs is that ffs will return a one based
index whereas __ffs will return a zero based index. Furthermore ffs will
check if the passed value is zero and return zero in that case, whereas
__ffs behavior is undefined if the passed parameter is 0.
Since we already check if the mask is 0 before calling ffs and also subtract
1 from the result __ffs is the better choice.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/oss')
0 files changed, 0 insertions, 0 deletions