Skip to content

Commit

Permalink
[PATCH] cmpci: don't use generic_hweight32()
Browse files Browse the repository at this point in the history
It's about to go away.

Cc: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 26, 2006
1 parent 9110540 commit 6b53f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/cmpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
case SOUND_MIXER_RECSRC: /* Arg contains a bit for each recording source */
if (get_user(val, p))
return -EFAULT;
i = generic_hweight32(val);
i = hweight32(val);
for (j = i = 0; i < SOUND_MIXER_NRDEVICES; i++) {
if (!(val & (1 << i)))
continue;
Expand Down

0 comments on commit 6b53f78

Please sign in to comment.