[PATCH 1/1] fs-char_devc-remove-useless-loop fix

From: Jiri Slaby
Date: Tue Aug 11 2009 - 08:12:34 EST


Fix following compilation warning:
fs/char_dev.c: In function `register_chrdev':
fs/char_dev.c:267: warning: unused variable `s'

Cc: Renzo Davoli <renzo@xxxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
---
fs/char_dev.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/fs/char_dev.c b/fs/char_dev.c
index e29f4be..33327d6 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -264,7 +264,6 @@ int register_chrdev(unsigned int major, const char *name,
{
struct char_device_struct *cd;
struct cdev *cdev;
- char *s;
int err = -ENOMEM;

cd = __register_chrdev_region(major, 0, 256, name);
--
1.6.3.3

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