Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4253263pxb; Tue, 25 Jan 2022 06:45:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzkK22kkTpQEG3mH/+wnF0kWFii1WnLit/a12eqrY2T5+nOXAxvkEGm/Ev01GV/WV/aDcA X-Received: by 2002:a17:90a:ec02:: with SMTP id l2mr3906913pjy.61.1643121926230; Tue, 25 Jan 2022 06:45:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121926; cv=none; d=google.com; s=arc-20160816; b=nGuZnRrtmpBaGmwXHzU8btnKdguAIf1lE8tbwzcttsQ92FFw2n5H34V3S067dDtiOY BLv76VlNUF01iKnoshKMyGqUkSxakdTZSOR35TsWn9bMx0UktJUkoDXuRF5sbijB6ZS7 H4/3xtiBBACWolMkFQ+xe8m0Gn0b5E+n0pYaI9XDemDg9n2YkqtcQKyHr8mIHJX93RHx DtsNHjWVU5DiGyRt31NVzjlCJFIsLPDepOR1M/6z5gKWfYSLWCBIjFrrljGlYsPkJ/Tz iSqRXJZZOQ5fL1a6tm8ouIkwGoIPh+nEA/u5x5ikUt6pxzsUHODixJzDCoxTDVkT4nie Z7cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=lP/ZW2jfCoZSTJKpFAgOH7cQzMhxGPU0UuCQt1ZX2xg=; b=y898OVNVg30FF1AytP5QHmP+2NhWTETk8AWAQxaqh4wot1zWK30pi2dCHi1Yx/ZKSK FjowxWcpzX0Q3qWLHxQ+1zDKguOMYTiIAq6QNru76dEL+eQb9Ziix0naWUD9Q6wXGf5a yKEjQ6Wao20s/LWQ6tEk9ebnvFJtdfIky66EdNXo+aI2vMvAZicahdouk6IvgDS8RGLV gd3vRK3syUeN0Rz8M9Vb3WevRKApAKaOnJstry5PEcInDU58xxr8j5RSCa7cTIE8zwbf 5pFWiF8kNWNBpvGj3ihmc7xkvwLC9URcdXwG0TkI1GlDjtAZMP5i+G41RE8ITy1elxdi AK9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G6BjtBL2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd5si454012pjb.83.2022.01.25.06.45.14; Tue, 25 Jan 2022 06:45:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G6BjtBL2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344444AbiAYKUo (ORCPT + 99 others); Tue, 25 Jan 2022 05:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243271AbiAYKQG (ORCPT ); Tue, 25 Jan 2022 05:16:06 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84528C061782 for ; Tue, 25 Jan 2022 02:16:06 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id v70-20020a25c549000000b006130de5790aso40613235ybe.4 for ; Tue, 25 Jan 2022 02:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=lP/ZW2jfCoZSTJKpFAgOH7cQzMhxGPU0UuCQt1ZX2xg=; b=G6BjtBL2PQpKPzs/aslF4eV9StQg1wCafTxVudubwVNxLRrHUmHPP4wDH5xx21Lv4f qpEEbm8/Z+eR+/z2yndoa+iZ0Pn11Pi5aaa05k2ihLKMil9jJo3fcl721rFm8eR48E8o 6BlHCvfb5t+8AGYpFCzDR0LH0DMEx+4xFtt0VA8fETU/Hi0E+7l3hm71aRHz/wSa9XC6 fobrYBmzGPTdoE1T+F5Yd/pa+AQraStZgcyxSi4u3fbWOJRYEsTblWKP/hFVGdZ5d/e3 qPBc3vZS5NL4gJwqFGH6fWCU9hMtt0vNgdcKtUU6xIkpAt31RqmalNQP+6ZWneht3ylC d9/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=lP/ZW2jfCoZSTJKpFAgOH7cQzMhxGPU0UuCQt1ZX2xg=; b=3OSIeRjmSAVL9nBQ1FQTN/XUytZfZMYqtyXGXdfMbwGYYJBlGCKyxhRUtxlm9TeM3U uaEgmJalQUv9XxVDx96KrGWMC2tqs2r6Oj3Ig+KIUc6ZayNKwj38y8dFEHI0Mly7dkNz an+eblTJAZSBd+ZYZNXZvgxnu+4aELrfg9QKMz8fO8EX0hCsuqCrDEp6JayA8VDF0J96 pjR3yg1dTa6iREWawhsI87KuVwiDcNA3ZrCq5OUPmqp8egFjW0QJA0R5wKV1iKzLqY/t cYBBe9khBdWbOhHvEb+Uz00uNWEfxtB//WJFkAlYlxUyr2fY4VWf3AfYTuXi9P2DuIrf h+og== X-Gm-Message-State: AOAM532dQnWTvWBn1TgHH2ujRslrHf5mnY+tapyhDTGbXni3FZ5FKp6F mjltuWFEQvlOCJkrrNB78XhTnjtlIUjl X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:10:69af:7f25:2010:2c85]) (user=tzungbi job=sendgmr) by 2002:a81:8505:0:b0:2ca:287c:6be0 with SMTP id 00721157ae682-2ca287c6e2fmr6127727b3.133.1643105765494; Tue, 25 Jan 2022 02:16:05 -0800 (PST) Date: Tue, 25 Jan 2022 18:15:25 +0800 In-Reply-To: <20220125101527.1812887-1-tzungbi@google.com> Message-Id: <20220125101527.1812887-5-tzungbi@google.com> Mime-Version: 1.0 References: <20220125101527.1812887-1-tzungbi@google.com> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog Subject: [PATCH 4/6] platform/chrome: cros_ec: don't initialize `err` in cros_ec_register() From: Tzung-Bi Shih To: bleung@chromium.org Cc: groeck@chromium.org, tzungbi@google.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org `err` in cros_ec_register() doesn't need to be initialized. Signed-off-by: Tzung-Bi Shih --- 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