From patchwork Fri Nov 24 11:43:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 10073983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B940E602DC for ; Fri, 24 Nov 2017 11:51:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A89242A3D8 for ; Fri, 24 Nov 2017 11:51:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DA152A3DA; Fri, 24 Nov 2017 11:51:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 397512A3D8 for ; Fri, 24 Nov 2017 11:51:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753438AbdKXLvZ (ORCPT ); Fri, 24 Nov 2017 06:51:25 -0500 Received: from gofer.mess.org ([88.97.38.141]:45419 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753456AbdKXLvZ (ORCPT ); Fri, 24 Nov 2017 06:51:25 -0500 Received: by gofer.mess.org (Postfix, from userid 1000) id AB37E605E5; Fri, 24 Nov 2017 11:44:01 +0000 (GMT) From: Sean Young To: Hans Verkuil , Dmitry Torokhov , Mauro Carvalho Chehab , linux-input@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 1/3] input: remove redundant check for EV_REP Date: Fri, 24 Nov 2017 11:43:59 +0000 Message-Id: <19939ec6f47e552c8c0b552d35cc0640a6af74f3.1511523174.git.sean@mess.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The caller input_pass_values has already checked this bit. Signed-off-by: Sean Young --- drivers/input/input.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 762bfb9487dc..ecc41d65b82a 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -74,9 +74,7 @@ static int input_defuzz_abs_event(int value, int old_val, int fuzz) static void input_start_autorepeat(struct input_dev *dev, int code) { - if (test_bit(EV_REP, dev->evbit) && - dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && - dev->timer.data) { + if (dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && dev->timer.data) { dev->repeat_key = code; mod_timer(&dev->timer, jiffies + msecs_to_jiffies(dev->rep[REP_DELAY]));