From patchwork Thu Mar 18 15:55:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 404321 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=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 C253CC433E0 for ; Thu, 18 Mar 2021 15:56:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8EFC264F30 for ; Thu, 18 Mar 2021 15:56:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhCRPzc (ORCPT ); Thu, 18 Mar 2021 11:55:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:55678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhCRPza (ORCPT ); Thu, 18 Mar 2021 11:55:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D9E3664DFF; Thu, 18 Mar 2021 15:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616082930; bh=ny4+E+N8QghqQwj3fjQuSxCnyOXITWxlwlBjnNkyV8Y=; h=From:To:Cc:Subject:Date:From; b=i7WikpQ9hqs57dlD+FCDTV2bLa3aNnel5wJl5ThSq8FJbh699OSaxLkJSYWDSUO9R lyQlXtHtDN17zaezAn6x8wGplxVuZlHYgkiKOc/4+SGgR81GuWt/i1yShepZsXU7pg 7E64g1F10Kwaa7E9t+YS9HoV85mYAddVAMMwKtLjHs/mZZniPud3V1lUGzG8fLeFZn sJesplB9gDp+bYSzqE5s0uXVAmxe9rSMQ+uK/A3ggxaPtdlWN1z7pwNqsZ3pe7IN4Q Ir5M4lufHOiMVicTfzUuG59cDOMJJKnoQkBx/vEt0GykgTfjcrIFW61F69zx2gh5hv VDX1Gixar/LzQ== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lMv00-0005ri-Ec; Thu, 18 Mar 2021 16:55:48 +0100 From: Johan Hovold To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] Input: ims-pcu - drop redundant driver-data assignment Date: Thu, 18 Mar 2021 16:55:25 +0100 Message-Id: <20210318155525.22496-1-johan@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The driver data for the data interface has already been set by usb_driver_claim_interface() so drop the subsequent redundant assignment. Signed-off-by: Johan Hovold --- drivers/input/misc/ims-pcu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index 08b9b5cdb943..81de8c4e37d0 100644 --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -2018,7 +2018,6 @@ static int ims_pcu_probe(struct usb_interface *intf, } usb_set_intfdata(pcu->ctrl_intf, pcu); - usb_set_intfdata(pcu->data_intf, pcu); error = ims_pcu_buffers_alloc(pcu); if (error)