lkml.org 
[lkml]   [2014]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next v9 4/9] net: set name_assign_type when setting names via ioctls
From
From: Tom Gundersen <teg@jklm.no>
Date: Thu, 17 Jul 2014 10:06:05 +0200

> @@ -2787,10 +2788,13 @@ static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc)
> pr_debug("create network interface");
>
> netname = "gsm%d";
> - if (nc->if_name[0] != '\0')
> + if (nc->if_name[0] != '\0') {
> netname = nc->if_name;
> - net = alloc_netdev(sizeof(struct gsm_mux_net), netname,
> - NET_NAME_UNKNOWN, gsm_mux_net_init);
> + name_assign_type = NET_NAME_USER;
> + }
> + net = alloc_netdev(sizeof(struct gsm_mux_net),
> + netname, name_assign_type,
> + gsm_mux_net_init);

The indentation is now not correct. For a function call, all arguments on the
second and subsequent line, must start exactly at the first column after the
openning parenthesis of the function call.


\
 
 \ /
  Last update: 2014-07-18 02:01    [W:0.104 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site