diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-21 05:02:45 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-21 05:02:45 -0400 |
| commit | e27772b48df91a954a74b1411b57d83b945a58c7 (patch) | |
| tree | ebd4a434d9e3cbd0844109e4469f91daac581b59 /drivers/net/netconsole.c | |
| parent | d092633bff3b19faffc480fe9810805e7792a029 (diff) | |
| parent | 14b395e35d1afdd8019d11b92e28041fad591b71 (diff) | |
Merge branch 'linus' into x86/urgent
Diffstat (limited to 'drivers/net/netconsole.c')
| -rw-r--r-- | drivers/net/netconsole.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 387a13395015..e13966bb5f77 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c | |||
| @@ -585,9 +585,8 @@ static struct config_item_type netconsole_target_type = { | |||
| 585 | * Group operations and type for netconsole_subsys. | 585 | * Group operations and type for netconsole_subsys. |
| 586 | */ | 586 | */ |
| 587 | 587 | ||
| 588 | static int make_netconsole_target(struct config_group *group, | 588 | static struct config_item *make_netconsole_target(struct config_group *group, |
| 589 | const char *name, | 589 | const char *name) |
| 590 | struct config_item **new_item) | ||
| 591 | { | 590 | { |
| 592 | unsigned long flags; | 591 | unsigned long flags; |
| 593 | struct netconsole_target *nt; | 592 | struct netconsole_target *nt; |
| @@ -599,7 +598,7 @@ static int make_netconsole_target(struct config_group *group, | |||
| 599 | nt = kzalloc(sizeof(*nt), GFP_KERNEL); | 598 | nt = kzalloc(sizeof(*nt), GFP_KERNEL); |
| 600 | if (!nt) { | 599 | if (!nt) { |
| 601 | printk(KERN_ERR "netconsole: failed to allocate memory\n"); | 600 | printk(KERN_ERR "netconsole: failed to allocate memory\n"); |
| 602 | return -ENOMEM; | 601 | return ERR_PTR(-ENOMEM); |
| 603 | } | 602 | } |
| 604 | 603 | ||
| 605 | nt->np.name = "netconsole"; | 604 | nt->np.name = "netconsole"; |
| @@ -616,8 +615,7 @@ static int make_netconsole_target(struct config_group *group, | |||
| 616 | list_add(&nt->list, &target_list); | 615 | list_add(&nt->list, &target_list); |
| 617 | spin_unlock_irqrestore(&target_list_lock, flags); | 616 | spin_unlock_irqrestore(&target_list_lock, flags); |
| 618 | 617 | ||
| 619 | *new_item = &nt->item; | 618 | return &nt->item; |
| 620 | return 0; | ||
| 621 | } | 619 | } |
| 622 | 620 | ||
| 623 | static void drop_netconsole_target(struct config_group *group, | 621 | static void drop_netconsole_target(struct config_group *group, |
