lkml.org 
[lkml]   [2012]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] net: add new QCA alx ethernet driver
Date
> From: Stephen Hemminger [mailto:shemminger@vyatta.com]
> Sent: Sunday, August 12, 2012 4:51
> To: Ren, Cloud
> > + strcpy(netdev->name, "eth%d");
> > + retval = register_netdev(netdev);
>
> The strcpy is unnecessary, alloc_etherdev already sets that.

Thanks, Hemminger, we will remove this line in the next post.

-Xiong


\
 
 \ /
  Last update: 2012-08-13 04:02    [W:0.085 / U:6.224 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site