lkml.org 
[lkml]   [2012]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: add new QCA alx ethernet driver
On Thu, 9 Aug 2012 18:14:30 +0800
<cjren@qca.qualcomm.com> wrote:

> + strcpy(netdev->name, "eth%d");
> + retval = register_netdev(netdev);

The strcpy is unnecessary, alloc_etherdev already sets that.


\
 
 \ /
  Last update: 2012-08-11 23:42    [W:0.073 / U:1.116 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site