Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2822218imm; Tue, 4 Sep 2018 10:32:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaTbDACIZbBklBaXTNcdSFm0OlOB9khqCDEid4o69HrjJalrWZfOKjA5Ce9qZe0Lj2FCk1J X-Received: by 2002:a62:4bc6:: with SMTP id d67-v6mr36057888pfj.175.1536082323844; Tue, 04 Sep 2018 10:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536082323; cv=none; d=google.com; s=arc-20160816; b=a4dxr22HgrRuaORRV7RUbm9YHtFbGQDfozMz0XrKsxmfbhWJgQtWfki3vyze0GcKE/ 02/PI3phM/oEmoq+cox13Gl2DrElslkCi4rnDaCgbvJC4FgrYhk3X4oCqgxnq7rwQwiH 99o8IjGLPB6NIdyl0nt1HnzcJ0qj9sBaNSAF1dLx58ZX00uSt5exOoRzKOAIJj2/OzON 3tMpjynNzIyieXCzw80E/r/biOnwKZetrugL31zVA19Jb+eIMiUrDtva1cQFCC7PN2pt x4kHmCCYvfer33vIJJDENOsm5TpI81etXSI7LVSqCv5Mf/9137c23q8WwV4e3nBFwlF3 U3yQ== 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=3yk47PU2CS0LcNUFKTMH6gZv7CbaPnUI442GOUQkCxk=; b=uzC8DlPI0nBuyaRFwO8rJruqxHsMIr2SnGyJ3Yo4X/lJPz8v+hSXqW1v7/XoMPi/CU zkV4HulHd/UGW+icrqvr8dz3mvVEypAs0gIA8/+QYCB1hwMj/OLorHrgo5T4gCGmU1h3 fjMteSp/HbQ9V3kCy08Xp0pyEziLyY3njhwlDT/WLvpPtQwJ8jZDzo008iMbmAInykJb zd82W5cZxYIJR8ybtXls43NrFHkC9iHvBBp+xdrBfOHxnLEtc4uOs2eVFyMiSekoE09X c/ud7bkvC+Y/4rYZzLADznwp+obbxIIAEg7YwX72wdFB8rIVqYK9BUKDy7LcErjztFJ/ XQMQ== 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 r8-v6si21948289pgl.392.2018.09.04.10.31.48; Tue, 04 Sep 2018 10:32:03 -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 S1727782AbeIDVzv (ORCPT + 99 others); Tue, 4 Sep 2018 17:55:51 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:34713 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727112AbeIDVzu (ORCPT ); Tue, 4 Sep 2018 17:55:50 -0400 Received: from localhost.localdomain ([37.4.249.97]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LymAB-1frJvI0h5L-0168EC; Tue, 04 Sep 2018 19:29:39 +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 V2 2/4 next] net: lan78xx: Drop unnecessary strcpy in lan78xx_probe Date: Tue, 4 Sep 2018 19:29:10 +0200 Message-Id: <1536082152-3669-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536082152-3669-1-git-send-email-stefan.wahren@i2se.com> References: <1536082152-3669-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:TdohkElw0k24Z76YVoYY5v1Z1T15qULO/vptTLPe8f7DsAqu3g6 aO0VSMyGN9LT5RT9V2WGGHsOTfRCTr/VT4k+eb4P5OxVpGoYEU6UkumAOnEaB9gA3vKW4yU xxW7zsgK1FJoOFRobyA5cxEqUYvUBA9kfe7WRgMH/ZqZdBXN73leQOrGlPHbuJNwgx3MvVo +SHsnDmGx/9u4lrIM7BRg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Z5UlGmUwGOU=:V4qEObedI1q6XIO6Akcqd/ AEDlx50j71tKMlj5JCS9PLLkRBG2QZ/8yfPgEGw5hoLVNpS8Ls6MZkNcKmPJyu1M61X0SxT4P XkwPZa8ZGYUM2eoJkn7mXLZV/HhD467SYSwf8IZJOjvMSddBngjUHKmxn1m430LGyhbx3UDBO HcIFE+PdgtG2uSu39qzC0Q9wFth3okFIFXp/X5Oz3D0AvHAw16moMuwghALQVpQu7gMfHzdQb PcpW08g0TjLuZ4hioUI6yYEHTwlgUjXM/3W+i3IF1cmTUIH0PDrgaPBk9/wspcerEWIBenB7B dW23qveMd1c8zlnmGd2cffj6QkENVY0fWEUqtbCtdwghIG77QQALdq9zDTN96zAZTsUX4rTet wFXoQWYjbW4K8IPIstUSAmM4+Lmf2raqMbb7lInJXCWXHDGgwIL9u3/4Y9OkI4hinV6vBtCjq 3C6QR1VytEbbX+ahMlNEeG/iAT2/HQyxN69u9VtMYgTttoU7W1F0t4p9Afdp2gdIH91kEB7Mc 34+a02PtRZpjWXc3Gla+O04Rv4eZ3WhHmogf0EUOAaj9Vj6aMPOsoKttE0/7fSDc5ugA4gv1X m8+5r+dwC+S19pfIPMlv2eEtSF9wpuo+JeujB6zfDyWzvm0E/J7HkoZnCM7hh1q+p9lIbNgkW z+gcvHfpj+y74pmXyKG2rzG6wuIM1/KSmmhoFZTnQxSQKfQe9lJdZRgCyMp/UpNNII3s= 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 Reviewed-by: Raghuram Chary Jallipalli --- 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