[PATCH 1/3] lib/kobject: simplify the kobject_init function

From: Dong Hao
Date: Tue Mar 19 2013 - 02:47:17 EST


From: Dong Hao <haodong@xxxxxxxxxxxxxxxxxx>

The printk() function at the end of function kobject_init() already had '\n',
so remove the duplicated one.

Signed-off-by: Dong Hao <haodong@xxxxxxxxxxxxxxxxxx>
---
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

--
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/