Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1819243imm; Mon, 3 Sep 2018 10:14:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbplQdN1q0ohO3puZnX2sPHLTpJ6qI7nv5MNWYW0f8oveFk/82/lFEYMwDq1cLN5QSRe8Yi X-Received: by 2002:a65:6654:: with SMTP id z20-v6mr22374086pgv.186.1535994881983; Mon, 03 Sep 2018 10:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994881; cv=none; d=google.com; s=arc-20160816; b=rJRjDB1W4rbOP7ioAVudOZip/R/XHJC4SrUB6veRSf45vFydn3yxgFM7zdurYiucNH 9btYxEOrO+qYsw8IsOQKm+Q/i01e6tyCklWjer2qqZnEbT8R0S7xtkdBJ0Ch+8ZLXnbg JM/pOsrvCzMNqxtSMCLC1HY9sLm1AJcIReTRHeoVMNKSDUX8o1z2//4+jcvP1zuWdc+H a13vh9KaA+kyjoOafVMxFVIqzpyoe11ISYyg7gRysyMblIsox5dh2SqKIuDv7MNP+3Ma PG0mmp12fVtYVcW08SAPaNwCW2ESWXzqwknfTinWpgZ+iwtElLUH1kAYvRu5Od2/qRHI eFtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=VrSUUHENwG8AyyVgRYWuy0YzjKhgwnlkZo+qVT4cvkI=; b=sTjZ60awhyGmUUERh7dvuadbtCd3ltnj4sa72GGVZ+bbs2eVm9MPDQ/7mYP2aB4+CE jTdwQNmaFL3DUfMwqfP/0wSr++7V38MxC3Mg+z2K6oxdDHdZDU5liK9hQT4FTJoeqfzB 2RFUNHnXYn3jPBBaiq9NiqcVfpIe/0P87sNdNIJcNk0pcS/Ddsc9CbBLipeQHwhU7hzT 4e3JjiPqnD99wt1SsGrvDLMxO9UQCOBzumqhGvwouYVAxpSzoLGrvJQAzX4tWOlrDfs/ m77gS+tZCLrHt1muqt5krHploTMnlyL/rfYRa/DwWrJHb2p9IxIf2dCmfq1Tep8RG6BI oWGQ== 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 97-v6si19041060plm.290.2018.09.03.10.14.26; Mon, 03 Sep 2018 10:14:41 -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 S1729531AbeICVeM (ORCPT + 99 others); Mon, 3 Sep 2018 17:34:12 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:46269 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728548AbeICVeL (ORCPT ); Mon, 3 Sep 2018 17:34:11 -0400 Received: from localhost.localdomain ([37.4.249.97]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LoIBN-1fPkRN3Zbl-00gEw7; Mon, 03 Sep 2018 19:12:56 +0200 From: Stefan Wahren To: Woojung Huh Cc: Microchip Linux Driver Support , "David S. Miller" , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH 2/4 next] net: lan78xx: Drop unnecessary strcpy in lan78xx_probe Date: Mon, 3 Sep 2018 19:12:37 +0200 Message-Id: <1535994759-8938-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535994759-8938-1-git-send-email-stefan.wahren@i2se.com> References: <1535994759-8938-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:dP6QZtZYzbdKIE6oE3N8dDZScw/W4mGynwDISB3H9147qWLNu6q V4A6u2nvpad70NzAW4kqkUB3mv0bJbArwhnkvPlFZST9YRseTlNbrXFpEjiqzwxq1G3L5YB EOYyt2FIiiDs/7Fml7BECkImq6iGhgLRWJE4Q/JZbLKcxYcfLKWCwAue1o8hBEuESlbAOSF EgTc6p5W/knjLfh0CE4Mw== X-UI-Out-Filterresults: notjunk:1;V01:K0:95DVrgEnyyY=:ZxKls4R0GdnLGDTbB5OoNY oUmHK1d5fv2uXSPN0IWc4h7chEizACn1/i3nPsJvc2dRUp5LYTF+rgYu4lrQikhnFAHXPQrys 9e9JAU3qqVy9MYWLTp5uJCIGDxpCXNxN6bKHKDhVkB72LabEtQYwyL0tcNoNQuL6cLgWA7ebx VgNAo6Ii+4AoObE9rWJVXdNFIldWbC82WiYoio+hRxoPVQROU0sFbIADnxi7cGVBbSqTl43kc gADI7V/eIVmw6jkFDmxP1/exURgU159WDFpV2xVpsmuXe2SfuHakXID1fWr+LVlNK99IVIuE1 x1WDwtSrIAhlc0apYFg3/6LFQyay2ZCnFRvS50fdgZDqdpeidfTxmI3SRWtGlXTJzKTTczoqm JUAy0i4Q3mr7D538yty3MUO3k+aWOgsGwM/IGQRyD5jIiuaua+L57Zq1XQiZwsYOz3n3thsBw aY3r287/ZA28wHoOwia0NRIXp6eOwCX5JGY0x0ZdWYMFINYILfR3D2a9HYqoH3MjpFyByFQuX dTijet5RcnyhR1Mxo571JMQaerdHg36CyFM9aywOrE3VKwOTNGJ4FlNPu2xOGCmUUpXfOpCjL yW8zCuur1pK279nVJfm0OLMLiMrgtmOqb4weFpOy3KBDU3lfoUYqUSdCYWQ6i0G88nM6/ig1U agMs0PXh+OWaY2jCQbQH/o3RPvt8/0t9HXRK9NANsnqlEeRPPxZ514Rb9hyD2t6Qn6eg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need for this strcpy because alloc_etherdev() already does this job. Signed-off-by: Stefan Wahren --- drivers/net/usb/lan78xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 3f70b94..3d505c2 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -3766,7 +3766,6 @@ static int lan78xx_probe(struct usb_interface *intf, ret = lan78xx_bind(dev, intf); if (ret < 0) goto out2; - strcpy(netdev->name, "eth%d"); if (netdev->mtu > (dev->hard_mtu - netdev->hard_header_len)) netdev->mtu = dev->hard_mtu - netdev->hard_header_len; -- 2.7.4