From patchwork Tue Mar 23 07:02:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mateng X-Patchwork-Id: 12157015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BB20C433E0 for ; Tue, 23 Mar 2021 07:03:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 373EA6198C for ; Tue, 23 Mar 2021 07:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbhCWHDN (ORCPT ); Tue, 23 Mar 2021 03:03:13 -0400 Received: from m12-11.163.com ([220.181.12.11]:59333 "EHLO m12-11.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhCWHC6 (ORCPT ); Tue, 23 Mar 2021 03:02:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=CJLfo sLeNSNlUjydq+9W2TUSg8WBNK8o8siasoDi61k=; b=YqhTAqjvcS+r68fSQkHgM MNEeF9xIjNtG1FG/kmbSdQN7iepU6yLMT7Sdw5m+TKKL52QAckLtnMDaHv9fUiRQ VleL7CAAhAvieYR/YachJteWZVZZtG+JD0hlbo4mwNGoklSGEYZyCK2HdBwOQycs jSgp5Rfn3SQVdg+hyJIGOw= Received: from COOL-20201218BF.ccdomain.com (unknown [218.94.48.178]) by smtp7 (Coremail) with SMTP id C8CowAA3YqyQkllgA+OrTg--.2683S2; Tue, 23 Mar 2021 15:02:53 +0800 (CST) From: mateng To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, mateng Subject: [PATCH] input/serio:unneeded variable:delay Date: Tue, 23 Mar 2021 15:02:50 +0800 Message-Id: <20210323070250.1306-1-ayowoe@163.com> X-Mailer: git-send-email 2.29.2.windows.3 MIME-Version: 1.0 X-CM-TRANSID: C8CowAA3YqyQkllgA+OrTg--.2683S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GryftF4UJrykWw18Wry7trb_yoW3AFg_u3 s5Zrn7JFyjywn0kFnrZry3Zr9YkanFqFyI9F4Fyw13ZryYqrWftF1DCrW7Cw42vr4fWF9r Kw17Gr95Ar45CjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8WrW5UUUUU== X-Originating-IP: [218.94.48.178] X-CM-SenderInfo: 5d1r40rh6rljoofrz/1tbiWx5eKlSIpZefZwAAsn Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: mateng delete unneeded variable 'delay' Signed-off-by: mateng --- drivers/input/serio/i8042.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index abae23a..145bda1 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -1126,7 +1126,6 @@ static void i8042_controller_reset(bool s2r_wants_reset) static long i8042_panic_blink(int state) { - long delay = 0; char led; led = (state) ? 0x01 | 0x04 : 0; @@ -1142,7 +1141,7 @@ static long i8042_panic_blink(int state) dbg("%02x -> i8042 (panic blink)\n", led); i8042_write_data(led); DELAY; - return delay; + return 0; } #undef DELAY