Re: [PATCH 06/14] Input: samsung-keypad - use guard notation to acquire mutex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 18, 2024 at 09:58:03PM -0700, Dmitry Torokhov wrote:
> Guard notation is more compact and ensures that the mutex will be
> released when control leaves the function.
> 
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
>  drivers/input/keyboard/samsung-keypad.c | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> 

You need to include cleanup.h (unless some other patch already did it
and I missed it?)

Best regards,
Krzysztof





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux