diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2007-03-08 23:02:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 16:28:34 -0400 |
commit | 64e35d92367d8cd376946eb924838de1dd3287c7 (patch) | |
tree | 9100e11f70dcbca6696ec29e1c9da91f9331f793 /drivers | |
parent | 643616e6780b26dd8c9cea0b9344bb5d7aeae29d (diff) |
libusual: change block scope variable to function scope
Someone changed the code to kthread and used his style instead of mine.
The problem with the block variables is that they provoke shadowing,
which is actually exactly what has happened in my other tree which
has the class patch.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/storage/libusual.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/storage/libusual.c b/drivers/usb/storage/libusual.c index 599ad10a761b..06d1107dbd47 100644 --- a/drivers/usb/storage/libusual.c +++ b/drivers/usb/storage/libusual.c | |||
@@ -117,6 +117,7 @@ EXPORT_SYMBOL_GPL(usb_usual_check_type); | |||
117 | static int usu_probe(struct usb_interface *intf, | 117 | static int usu_probe(struct usb_interface *intf, |
118 | const struct usb_device_id *id) | 118 | const struct usb_device_id *id) |
119 | { | 119 | { |
120 | int rc; | ||
120 | unsigned long type; | 121 | unsigned long type; |
121 | struct task_struct* task; | 122 | struct task_struct* task; |
122 | unsigned long flags; | 123 | unsigned long flags; |
@@ -135,7 +136,7 @@ static int usu_probe(struct usb_interface *intf, | |||
135 | 136 | ||
136 | task = kthread_run(usu_probe_thread, (void*)type, "libusual_%d", type); | 137 | task = kthread_run(usu_probe_thread, (void*)type, "libusual_%d", type); |
137 | if (IS_ERR(task)) { | 138 | if (IS_ERR(task)) { |
138 | int rc = PTR_ERR(task); | 139 | rc = PTR_ERR(task); |
139 | printk(KERN_WARNING "libusual: " | 140 | printk(KERN_WARNING "libusual: " |
140 | "Unable to start the thread for %s: %d\n", | 141 | "Unable to start the thread for %s: %d\n", |
141 | bias_names[type], rc); | 142 | bias_names[type], rc); |