Commit dc98e25b authored by Tzung-Bi Shih's avatar Tzung-Bi Shih Committed by Lee Jones
Browse files

mfd: cros_ec: Simplify and clean-up cros_ec_dev_init()



Simplify cros_ec_dev_init() by the following changes:
- Get rid of label `failed_devreg`.
- Remove a redundant space and comment.
- Use `if (ret)` instead of `if (ret < 0)`.

Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20240819102326.5235-1-tzungbi@kernel.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 607638b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment