]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: pegasus_notetaker - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Sep 2024 20:59:18 +0000 (13:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 16:10:37 +0000 (09:10 -0700)
commit0e7b4bc31d171856fcb753f653e0f00855763bf3
treeee8aa04cd45afad7dca3b0d4c9e79596454c4cb4
parent844111df52dc2d1f2da6c80d4b7e219d7b6e16f9
Input: pegasus_notetaker - 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/ZtjKJsArLu3byTU6@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/pegasus_notetaker.c