aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2011-06-15 15:08:22 -0700
committerLinus Torvalds <[email protected]>2011-06-15 20:04:00 -0700
commit4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7 (patch)
tree334f2327d82f065b20d71a66c4133399cce263b1 /lib/mpi/mpiutil.c
parent5a1e6f75831bf1f8e596d642cd8a2512f11548fc (diff)
drivers/misc/cs5535-mfgpt.c: fix wrong if condition
Fix the wrong `if' condition for the check if the requested timer is available. The bitmap avail is used to store if a timer is used already. test_bit() is used to check if the requested timer is available. If a bit in the avail bitmap is set it means that the timer is available. The runtime effect would be that allocating a specific timer always fails (versus telling cs5535_mfgpt_alloc_timer to allocate the first available timer, which works). Signed-off-by: Christian Gmeiner <[email protected]> Acked-by: Andres Salomon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions