From: Felipe Balbi Date: Mon, 30 Dec 2013 18:42:38 +0000 (-0600) Subject: usb: musb: core: improve musb_interrupt() a bit X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31a0ede0de49a5897d7d97c68228ae79f86c38f0;p=pandora-kernel.git usb: musb: core: improve musb_interrupt() a bit instead of using manually spelled out bit-shits and iterate over each of the 16-bits (one for each endpoint) on each direction, we can make use of for_each_set_bit() which internally uses find_first_bit(). This makes the code slightly more readable while also making we only iterate over bits which are actually set. Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed