Re: [PATCH] lib/kobject: simplify function kobject_init

From: Cong Wang
Date: Thu Jul 05 2012 - 11:01:16 EST


On Thu, Jul 5, 2012 at 3:58 PM, Dong Hao <haodong@xxxxxxxxxxxxxxxxxx> 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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/