Revert "USB: gadget: android: check for null _android_dev in android_register_function()"
author黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:16:56 +0000 (22:16 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:16:56 +0000 (22:16 +0800)
This reverts commit 4bcc593ad967fd7ff1c30f61cb6ea5dc91b8c1a0.

drivers/usb/gadget/android.c

index 3c4d44d663c0c79909a1436cabe76818137bb1e5..70e48ac3e2a9d666fcc0ae16d1058996277ce241 100755 (executable)
@@ -313,7 +313,7 @@ void android_register_function(struct android_usb_function *f)
        /* bind our functions if they have all registered
         * and the main driver has bound.
         */
-       if (dev && dev->config && _registered_function_count == dev->num_functions)
+       if (dev->config && _registered_function_count == dev->num_functions)
                bind_functions(dev);
 }