Re: [PATCH 3/3] Input: raydium_i2c_ts - Make use of the helper function devm_add_action_or_reset()
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2021-09-23 04:50:05
Also in:
lkml
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2021-09-23 04:50:05
Also in:
lkml
On Wed, Sep 22, 2021 at 08:52:11PM +0800, Cai Huoqing wrote:
The helper function devm_add_action_or_reset() will internally call devm_add_action(), and if devm_add_action() fails then it will execute the action mentioned and return the error code. So use devm_add_action_or_reset() instead of devm_add_action() to simplify the error handling, reduce the code. Signed-off-by: Cai Huoqing <redacted>
Applied, thank you. -- Dmitry