commit | 3d422a4668ef0c5e30f616e9a9b4c7ac3adaade1 | [log] [tgz] |
---|---|---|
author | Cai Huoqing <caihuoqing@baidu.com> | Fri Oct 15 10:28:03 2021 +0800 |
committer | Jiri Kosina <jkosina@suse.cz> | Wed Oct 27 10:14:05 2021 +0200 |
tree | bd8a04a41d19e33e9d3f16235075044632d36c98 | |
parent | b7644592bd0d78cf7aba377124c2d3082607685b [diff] |
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 <caihuoqing@baidu.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>