From fdfae0c5575f1b273ca473d9b1bc877fa486b583 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 27 Feb 2006 09:53:03 +0100 Subject: [PATCH] --- yaml --- r: 22739 b: refs/heads/master c: 62f09c3d321c82981ae3f2dd7e32bc4c73379a7e h: refs/heads/master i: 22737: 0f038cb343f89753f8be755301062d6a4acbca84 22735: a1e0d00585d25757147b03e5f1568c49bbe17526 v: v3 --- [refs] | 2 +- trunk/sound/usb/usbmidi.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 9296ecf3776f..acff99351ee2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 62c5549ee246fa30606f918f97c6b3cde2831292 +refs/heads/master: 62f09c3d321c82981ae3f2dd7e32bc4c73379a7e diff --git a/trunk/sound/usb/usbmidi.c b/trunk/sound/usb/usbmidi.c index 7580339dba22..2b9d940c8064 100644 --- a/trunk/sound/usb/usbmidi.c +++ b/trunk/sound/usb/usbmidi.c @@ -871,10 +871,10 @@ static int snd_usbmidi_in_endpoint_create(struct snd_usb_midi* umidi, static unsigned int snd_usbmidi_count_bits(unsigned int x) { - unsigned int bits = 0; + unsigned int bits; - for (; x; x >>= 1) - bits += x & 1; + for (bits = 0; x; ++bits) + x &= x - 1; return bits; }