diff options
author | Christophe JAILLET <[email protected]> | 2022-02-13 08:41:39 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2022-03-08 10:47:28 +0000 |
commit | 023a8830a62846e1cecc8da07e00c801dd0d7598 (patch) | |
tree | 10570c0db6d006dadb71fef1208062756efac7a8 /net/lapb/lapb_timer.c | |
parent | d4294e4fc7f0feeb877ae0aa58cea4f4328f8974 (diff) |
backlight: backlight: Slighly simplify devm_of_find_backlight()
Use devm_add_action_or_reset() instead of devm_add_action()+hand writing
what is done in the release function, should an error occur.
This is more straightforward and saves a few lines of code.
While at it, remove a useless test in devm_backlight_release(). 'data' is
known to be not NULL when this function is called.
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Daniel Thompson <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/f998a4291d865273afa0d1f85764a9ac7fbc1b64.1644738084.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions