Commit:     64e35d92367d8cd376946eb924838de1dd3287c7
Parent:     643616e6780b26dd8c9cea0b9344bb5d7aeae29d
Author:     Pete Zaitcev <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 8 20:02:26 2007 -0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 13:28:34 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 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 599ad10..06d1107 100644
--- a/drivers/usb/storage/libusual.c
+++ b/drivers/usb/storage/libusual.c
@@ -117,6 +117,7 @@ EXPORT_SYMBOL_GPL(usb_usual_check_type);
 static int usu_probe(struct usb_interface *intf,
                         const struct usb_device_id *id)
+       int rc;
        unsigned long type;
        struct task_struct* task;
        unsigned long flags;
@@ -135,7 +136,7 @@ static int usu_probe(struct usb_interface *intf,
        task = kthread_run(usu_probe_thread, (void*)type, "libusual_%d", type);
        if (IS_ERR(task)) {
-               int rc = PTR_ERR(task);
+               rc = PTR_ERR(task);
                printk(KERN_WARNING "libusual: "
                    "Unable to start the thread for %s: %d\n",
                    bias_names[type], rc);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to