]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: bcm5974 - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:29:56 +0000 (22:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 29 Aug 2024 18:00:21 +0000 (11:00 -0700)
commit30f85882393193d344b815f02ecb5c8d7db4923d
tree71015c798ae105d8ae8ae9336e645c01a4482fe3
parent40a6bb10d3d124c9adfd9f5e0bb8e020e0ccb712
Input: bcm5974 - use guard notation when acquiring mutex

This makes the code more compact and error handling more robust
by ensuring that mutexes are released in all code paths when control
leaves critical section.

Acked-by: Henrik Rydberg <rydberg@bitmath.org>
Link: https://lore.kernel.org/r/ZsrBVO2w9WwX73iU@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/bcm5974.c