Messages in this thread Patch in this message | | | From | Dong Hao <> | Subject | [PATCH 1/3] lib/kobject: simplify the kobject_init function | Date | Tue, 19 Mar 2013 14:46:59 +0800 |
| |
From: Dong Hao <haodong@linux.vnet.ibm.com>
The printk() function at the end of function kobject_init() already had '\n', so remove the duplicated one.
Signed-off-by: Dong Hao <haodong@linux.vnet.ibm.com> --- lib/kobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kobject.c b/lib/kobject.c index e07ee1f..279a172 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -274,7 +274,7 @@ void kobject_init(struct kobject *kobj, struct kobj_type *ktype) goto error; } if (!ktype) { - err_str = "must have a ktype to be initialized properly!\n"; + err_str = "must have a ktype to be initialized properly!"; goto error; } if (kobj->state_initialized) { -- 1.7.9.5
| |