mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: cjren@qca.qualcomm.com
Cc: shemminger@vyatta.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, qca-linux-team@qualcomm.com,
	nic-devel@qualcomm.com, xiong@qca.qualcomm.com,
	hao-ran.liu@canonical.com, joe@perches.com,
	rodrigue@qca.qualcomm.com
Subject: Re: [PATCH] net: add new QCA alx ethernet driver
Date: Tue, 14 Aug 2012 22:32:58 -0700 (PDT)	[thread overview]
Message-ID: <20120814.223258.1180104882398843954.davem@davemloft.net> (raw)
In-Reply-To: <6349D7A510622448B1BA0967850A84380136A1EF@NASANEXD02D.na.qualcomm.com>

From: "Ren, Cloud" <cjren@qca.qualcomm.com>
Date: Wed, 15 Aug 2012 03:29:26 +0000

>>> +	strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1);
>>> ...
>>> +	strcpy(netdev->name, "eth%d");
>>> +	retval = register_netdev(netdev);
>>
>>The strcpy is unnecessary, alloc_etherdev already sets that.
> 
> The strcpy is useful. netdev->name is set as pci_name in front. So the strcpy restores it.

Are you doing this just to influence the initial driver log messages?

Don't do that, it's gross.

  reply	other threads:[~2012-08-15  5:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 10:14 cjren
2012-08-09  2:27 ` Ren, Cloud
2012-08-09  4:09   ` Joe Perches
2012-08-09  4:44     ` Ren, Cloud
2012-08-09  6:18       ` David Miller
2012-08-09  6:49         ` Ren, Cloud
2012-08-09  7:58           ` Joe Perches
2012-08-09  8:25             ` Ren, Cloud
2012-08-09 14:54           ` Steven Rostedt
2012-08-09 15:22             ` Joe Perches
2012-08-09 15:28               ` Steven Rostedt
2012-08-09 18:56                 ` Ben Hutchings
2012-08-10  0:26                   ` Huang, Xiong
2012-08-09 19:13                 ` Luis R. Rodriguez
2012-08-09 19:31                   ` Luis R. Rodriguez
2012-08-09  6:14     ` David Miller
2012-08-09  6:11   ` David Miller
2012-08-11 20:50 ` Stephen Hemminger
2012-08-13  1:19   ` Huang, Xiong
2012-08-15  3:29   ` Ren, Cloud
2012-08-15  5:32     ` David Miller [this message]
2012-08-15  5:39       ` Ren, Cloud
2012-08-15 15:02         ` Stephen Hemminger
2012-08-16  2:19           ` Ren, Cloud
2012-08-15 17:53 cjren
2012-08-16 13:16 ` Joe Perches
2012-08-17  1:49   ` Ren, Cloud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120814.223258.1180104882398843954.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=cjren@qca.qualcomm.com \
    --cc=hao-ran.liu@canonical.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nic-devel@qualcomm.com \
    --cc=qca-linux-team@qualcomm.com \
    --cc=rodrigue@qca.qualcomm.com \
    --cc=shemminger@vyatta.com \
    --cc=xiong@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®