[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220125101527.1812887-5-tzungbi@google.com>
Date: Tue, 25 Jan 2022 18:15:25 +0800
From: Tzung-Bi Shih <tzungbi@...gle.com>
To: bleung@...omium.org
Cc: groeck@...omium.org, tzungbi@...gle.com,
linux-kernel@...r.kernel.org
Subject: [PATCH 4/6] platform/chrome: cros_ec: don't initialize `err` in cros_ec_register()
`err` in cros_ec_register() doesn't need to be initialized.
Signed-off-by: Tzung-Bi Shih <tzungbi@...gle.com>
---
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
Powered by blists - more mailing lists