Received: by 10.213.65.68 with SMTP id h4csp510774imn; Fri, 16 Mar 2018 09:58:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELvZp+daQ58jsgXfNuIzooRRBHs6UxQBrgr+tji2gspI1hOXCfpkFgPv45P+mtsI+Fm+Xd00 X-Received: by 2002:a17:902:8bc3:: with SMTP id r3-v6mr575192plo.100.1521219534981; Fri, 16 Mar 2018 09:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219534; cv=none; d=google.com; s=arc-20160816; b=ZWedSoB7kp82Oo4e65Jcw3MRpu3E75Hhdtk2K5OSNUaMW6zi0LCR+Eo0TukW4lOxl6 Wg4htAH8RcXT+7hOrffbuIkyQ35eKSqrFKi+3tbKfb/pNIhkFozzBN34BMxQADjLM7p0 9jlrG9AmG/zCyYBxOLAmXqqcfQalLJoZk+tl0yg3Jsw6wW1FWvvYB7KGzhrJPXaAiRKm gfPqQj+CaoweRvmIu1VdcTP9CRy0AlhcPNRj8ZFe5ql0E7PfOSd37shsRDIhXg5BSDsM j+QQvjFzq3V0Jf9p6Yqvxqo+SkZcVwTuYtlElgR9cpJyjB4HY3nQRxiK6XrHM62hCNhl TQlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fYJb6Ce9jFrI6zDXqQ/tTt6FY8dJGPjCzoKTJsGDWYU=; b=SZho+dqB6MOQJ8S1YHpPySNTJGcWScI7eXtBMAV14OAqiMEUGG4cUXPXdDL/LuVB0/ glWJ9BK9FMV9Q+usbjA+UghiChqB+nh5xQXm3l94GIYy9Tt/Z7HGr9IXsbU3Gq/jXniu 8oMZxR8YUtGEQC3qZ5l8GVR3xKRNT+cSs/ht+WK+/T61UY7ycaI8xyv1pKPitXpQM/z4 LCxJHqsOIwdELndrFWkJLey8x/2PO3PFEi5je5MwvZ3IO/wDJI8HqG44zDeFSVvb0s9d L71KZh6lwYXGqUxuOyFz+CD3MpxgVHnRBxqzUNAED7+7gSOjFyl/3oj+f0N+E57pTe9U GE0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6-v6si6446993plg.618.2018.03.16.09.58.40; Fri, 16 Mar 2018 09:58:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933806AbeCPPdn (ORCPT + 99 others); Fri, 16 Mar 2018 11:33:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39060 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933410AbeCPPdk (ORCPT ); Fri, 16 Mar 2018 11:33:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CA540DB8; Fri, 16 Mar 2018 15:33:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Torokhov , Ben Hutchings Subject: [PATCH 4.9 52/86] Input: tca8418_keypad - remove double read of key event register Date: Fri, 16 Mar 2018 16:23:15 +0100 Message-Id: <20180316152320.912127006@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dmitry Torokhov commit 9dd46c02532a6bed6240101ecf4bbc407f8c6adf upstream. There is no need to tread the same register twice in a row. Fixes: ea4348c8462a ("Input: tca8418_keypad - hide gcc-4.9 -Wmaybe-un ...") Signed-off-by: Dmitry Torokhov Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- drivers/input/keyboard/tca8418_keypad.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/input/keyboard/tca8418_keypad.c +++ b/drivers/input/keyboard/tca8418_keypad.c @@ -189,8 +189,6 @@ static void tca8418_read_keypad(struct t input_event(input, EV_MSC, MSC_SCAN, code); input_report_key(input, keymap[code], state); - /* Read for next loop */ - error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, ®); } while (1); input_sync(input);