Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp662512pxf; Thu, 18 Mar 2021 08:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSZtJp/UYHECNrr8ghPqDfD4HQLdYqdfVtX+3D6Ilyt+mXBSPvNzIqH4KQoamR4A2smXBS X-Received: by 2002:aa7:d54c:: with SMTP id u12mr4644626edr.234.1616082821427; Thu, 18 Mar 2021 08:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616082821; cv=none; d=google.com; s=arc-20160816; b=WOLKNqEttgKOb2y13cRmpkbHcN4bby73w4ZJbpI5osvhWhebuwjpSDK36TGaD61978 pdxJkyODTRFVja6P/j92ESJ4jNc7zl4L+2MXEaBlAdarc5HCZFagSYGjwXRR4OmMuUxW Kf6FBFkahEn7tO3ELbT7WhzVyoNvpcFFtnprZcA/jAn+r/X2ceudM1TUzBF5oTPbDwAj Ag8z5zqxlBKF94SFXBmuE8OMWvRpZgi+41P/FuDYtSgWcU6H6spXDcp6GX7hIpg3WriA 85gb31cK/42yANL2kNPWJz503s6MBOgZ12h7v/T9/BC+pMDtzACEwpxgrZge+tsrY6He NetQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xezMLQM8lHSAXnO02lu1eyxdf4xw+9KxnDwKXGJsKH0=; b=LY4UOFMNJInkCAeqEZ3EQ9tgQOGSzmG3QkW5Ln+ppw/q31n3gImuJN4X3jE5wp8TtI Mzm4GjlzXO5wUXbul5Bkqczc8SoeVvvDmA++BDHu01IHEBnJzP8heOl7f6XMEoE0tCCY enymcnyVhOSEjzDuRGA/8t5F7eQMlD2bfTS6B6oUgWggFVa3U/8Mp2t243x877kkspJR SaDh/c20c7fmlPEsulUB0ZldCNfPcZ1JHCI/Yj/3c84UtzNGabUBlU7M08cVPYl4sTns e1SwznVXs3oZT9qQvf3tyS+5hEuueKbTt9Kn6Dix12SlvCYgb3n2eMzGDE6ILCkx6gJR Bnxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hVkNpbIw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs9si1808754edb.575.2021.03.18.08.53.18; Thu, 18 Mar 2021 08:53:41 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=hVkNpbIw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbhCRPwW (ORCPT + 99 others); Thu, 18 Mar 2021 11:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:54640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbhCRPwA (ORCPT ); Thu, 18 Mar 2021 11:52:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2240B64EF6; Thu, 18 Mar 2021 15:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616082720; bh=+yNLBBpLQUesjQU9zH7hMX1JnxqzSjRK9z0Q3x+/JT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hVkNpbIwu3KUht+BSIMxlDTC66nH0LJJuUUmJFIL7HUp2E/3BIAVCIiIdl+KZWL32 75kEEJs0ed7sfGdKrmvkXXNuW5ZmZrJqBBvXFv1xbL76b2xCYDl4Q4ex2z6UK6ju8l s1M0UCPiit+PEpct2Hep2Y8PnnZ8LMju98XYk36b+49QEjgtIOcIKvYdu5NzMbbwSN +k+CpG6F/C6GfKTCATfZU9790yVkJBNpGRDtlcdaZD4cYosu7pwr341/7x7+WcTAuT K6lhxUBDiWGyN7zqfk94vaKC8gsoKUM+HYpVDZoQw4ulkDDEHdphfPyKy04BZvtSDm djxfSDunEu1Xg== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lMuwc-0005nU-5r; Thu, 18 Mar 2021 16:52:18 +0100 From: Johan Hovold To: Oliver Neukum , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/7] USB: cdc-acm: drop redundant driver-data assignment Date: Thu, 18 Mar 2021 16:51:58 +0100 Message-Id: <20210318155202.22230-4-johan@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210318155202.22230-1-johan@kernel.org> References: <20210318155202.22230-1-johan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The interface driver data has already been set by usb_driver_claim_interface() so drop the redundant subsequent assignment. Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index dfc2480add91..36dd1e05e455 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1487,7 +1487,6 @@ static int acm_probe(struct usb_interface *intf, acm_set_line(acm, &acm->line); usb_driver_claim_interface(&acm_driver, data_interface, acm); - usb_set_intfdata(data_interface, acm); tty_dev = tty_port_register_device(&acm->port, acm_tty_driver, minor, &control_interface->dev); -- 2.26.2