[PATCH 4/6] platform/chrome: cros_ec: don't initialize `err` in cros_ec_register()

From: Tzung-Bi Shih
Date: Tue Jan 25 2022 - 05:21:10 EST


`err` in cros_ec_register() doesn't need to be initialized.

Signed-off-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>
---
drivers/platform/chrome/cros_ec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
index abbe71309e40..c2c7a748e48f 100644
--- a/drivers/platform/chrome/cros_ec.c
+++ b/drivers/platform/chrome/cros_ec.c
@@ -182,7 +182,7 @@ static int cros_ec_ready_event(struct notifier_block *nb,
int cros_ec_register(struct cros_ec_device *ec_dev)
{
struct device *dev = ec_dev->dev;
- int err = 0;
+ int err;

BLOCKING_INIT_NOTIFIER_HEAD(&ec_dev->event_notifier);

--
2.35.0.rc0.227.g00780c9af4-goog