Renzo Davoli dd5d81f326 fs/char_dev.c: remove useless loop
There are two useless lines in fs/char_dev.c.

In register_chrdev there is a loop to change all '/' into '!' in the
kernel object name.
This code is useless as the same substitution is in kobject_set_name_vargs in
lib/kobject.c:
228         /* ewww... some of these buggers have '/' in the name ... */
229         while ((s = strchr(kobj->name, '/')))
230                 s[0] = '!';

kobject_set_name_vargs is called by kobject_set_name.
kobject_set_name is called just above the useless loop.

[hidave.darkstar@gmail.com: fix warning, remove the unused char *s]
Signed-off-by: Renzo Davoli <renzo@cs.unibo.it>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-24 07:21:03 -07:00
..
2009-09-23 13:03:46 -05:00
2009-07-12 12:22:34 -07:00
2009-06-11 21:36:14 -04:00
2009-09-23 07:39:29 -07:00
2009-07-12 12:22:34 -07:00
2009-09-23 07:39:28 -07:00
2009-09-23 07:39:29 -07:00
2009-06-17 00:36:36 -04:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-09-23 18:13:10 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-07-10 19:18:59 -07:00
2009-09-23 07:39:29 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-06-15 21:44:43 -07:00
2009-09-23 07:39:29 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 07:39:30 -07:00
2009-09-23 07:39:27 -07:00
2009-06-17 00:36:37 -04:00
2009-06-18 13:03:46 -07:00
2009-09-24 07:21:01 -07:00
2009-09-23 07:39:29 -07:00
2009-09-24 07:21:03 -07:00
2009-09-23 07:39:30 -07:00
2009-06-18 13:03:41 -07:00
2009-09-24 07:21:01 -07:00
2009-03-31 23:00:26 -04:00
2009-09-23 07:39:29 -07:00
2009-06-11 21:36:07 -04:00
2009-09-22 07:17:41 -07:00
2009-04-07 08:31:16 -07:00
2009-04-20 23:02:52 -04:00
2009-09-23 07:39:29 -07:00