lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] lib/kobject: simplify function kobject_init
From
On Thu, Jul 5, 2012 at 3:58 PM, Dong Hao <haodong@linux.vnet.ibm.com> wrote:
> if (kobj->state_initialized) {
> /* do not error out as sometimes we can recover */
> - printk(KERN_ERR "kobject (%p): tried to init an initialized "
> - "object, something is seriously wrong.\n", kobj);
> - dump_stack();
> + err_str = "tried to init an initialized object, something is seriously wrong.";
> + goto error;

You missed the comment:

/* do not error out as sometimes we can recover */


\
 
 \ /
  Last update: 2012-07-05 17:41    [W:0.778 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site