]> git.dujemihanovic.xyz Git - linux.git/commit
mfd: cros_ec: Simplify and clean-up cros_ec_dev_init()
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 19 Aug 2024 10:23:26 +0000 (18:23 +0800)
committerLee Jones <lee@kernel.org>
Mon, 23 Sep 2024 15:20:53 +0000 (16:20 +0100)
commitdc98e25bc37b9674f7984b88d04793f466734728
tree9f79bfee30502a1fde415b49aaaa25d41c860f2c
parent607638b73cb097e727b19e4c09f2c68bddae941e
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>
drivers/mfd/cros_ec_dev.c