All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kobject_add: use constant strings directly as fmt strings
@ 2008-11-19 15:54 crquan
  2008-11-19 15:57 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: crquan @ 2008-11-19 15:54 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Greg Kroah-Hartman, linux-kernel

From: Cheng Renquan <crquan@gmail.com>

Signed-off-by: Cheng Renquan <crquan@gmail.com>
---
 block/blk-sysfs.c |    2 +-
 block/elevator.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 21e275d..0b189e9 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -342,7 +342,7 @@ int blk_register_queue(struct gendisk *disk)
 		return 0;
 
 	ret = kobject_add(&q->kobj, kobject_get(&disk_to_dev(disk)->kobj),
-			  "%s", "queue");
+			  "queue");
 	if (ret < 0)
 		return ret;
 
diff --git a/block/elevator.c b/block/elevator.c
index 9ac82dd..9a39f27 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -1005,7 +1005,7 @@ int elv_register_queue(struct request_queue *q)
 	elevator_t *e = q->elevator;
 	int error;
 
-	error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched");
+	error = kobject_add(&e->kobj, &q->kobj, "iosched");
 	if (!error) {
 		struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
 		if (attr) {
-- 
1.6.0.4.758.g36c05


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-19 17:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 15:54 [PATCH] kobject_add: use constant strings directly as fmt strings crquan
2008-11-19 15:57 ` Greg KH
2008-11-19 16:17   ` rae l
2008-11-19 17:00     ` Kay Sievers
2008-11-19 17:37       ` rae l

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.