Skip to contentSkip to conversation

fs-char_devc-remove-useless-loop fix

PATCH New Jiri Slaby 1 participant 1 message Aug 11, 2009 VFS

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

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

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

Cc Renzo Davoli <[email protected]>
Cc Al Viro <[email protected]>
---
 fs/char_dev.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/char_dev.c +0 -1
index e29f4be..33327d6 100644
@@ -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);
Signature · 1 line
1.6.3.3