diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2024-08-19 13:23:26 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-09-23 18:20:53 +0300 |
commit | dc98e25bc37b9674f7984b88d04793f466734728 (patch) | |
tree | 9f79bfee30502a1fde415b49aaaa25d41c860f2c /rust/helpers/task.c | |
parent | 607638b73cb097e727b19e4c09f2c68bddae941e (diff) | |
download | linux-dc98e25bc37b9674f7984b88d04793f466734728.tar.xz |
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: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20240819102326.5235-1-tzungbi@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions