mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
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 <balbi@ti.com>
This commit is contained in:
parent
e3c93e1a3f
commit
31a0ede0de
1 changed files with 24 additions and 28 deletions
Loading…
Add table
Add a link
Reference in a new issue