Skip to content
Commit bd9ea55b authored by Shahar Avidar's avatar Shahar Avidar Committed by Greg Kroah-Hartman
Browse files

staging: pi433: Remove duplicated code using the "goto" error recovery scheme.



pi433_init had "unregister_chrdev" called twice.
Remove it using goto statements.

Signed-off-by: default avatarShahar Avidar <ikobh7@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240405074000.3481217-6-ikobh7@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 494566f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment