diff options
| author | Cai Huoqing <[email protected]> | 2021-10-15 02:28:03 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2021-10-27 08:14:05 +0000 |
| commit | 3d422a4668ef0c5e30f616e9a9b4c7ac3adaade1 (patch) | |
| tree | bd8a04a41d19e33e9d3f16235075044632d36c98 /fs/ext4/fast_commit.c | |
| parent | HID: wacom: Shrink critical section in `wacom_add_shared_data` (diff) | |
| download | kernel-3d422a4668ef0c5e30f616e9a9b4c7ac3adaade1.tar.gz kernel-3d422a4668ef0c5e30f616e9a9b4c7ac3adaade1.zip | |
HID: wacom: Make use of the helper function devm_add_action_or_reset()
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
