summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-04 07:48:33 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-03 19:10:37 +0300
commit844111df52dc2d1f2da6c80d4b7e219d7b6e16f9 (patch)
tree7039cf23e6b4168fa28b90bdf5e1e977272df606 /tools/perf
parent452e0adff26188fb13bfc862f665bdc684ce64fc (diff)
downloadlinux-844111df52dc2d1f2da6c80d4b7e219d7b6e16f9.tar.xz
Input: max8997_haptic - use guard notation when acquiring mutex
Using guard notation 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. Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20240904044834.1048468-1-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions