Thread (39 messages) 39 messages, 5 authors, 2024-10-04

Re: [PATCH 03/14] Input: samsung-keypad - do not combine memory allocation checks

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2024-08-19 12:52:25
Also in: linux-devicetree, linux-input, linux-samsung-soc, lkml

On Sun, Aug 18, 2024 at 09:58:00PM -0700, Dmitry Torokhov wrote:
The driver uses devm API to allocate resources so there's no reason
to do allocations first and then check and release everything at once.

Check results immediately after doing allocation of each resource.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/keyboard/samsung-keypad.c | 5 ++++-
Reviewed-by: Krzysztof Kozlowski <redacted>

Best regards,
Krzysztof

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help