usb: gadget: slp: remove rndis_init
authorChanho Park <chanho61.park@samsung.com>
Thu, 26 Sep 2013 05:35:25 +0000 (14:35 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:48 +0000 (11:44 +0900)
This patch removes rndis_init because it was already enabled during module_init.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
drivers/usb/gadget/slp.c

index 6a22cf9..0a5fec4 100644 (file)
@@ -477,14 +477,6 @@ static int rndis_function_bind_config(struct slp_multi_usb_function *f,
                rndis_control_intf.bInterfaceProtocol = 0x03;
        }
 
-       /* ... and setup RNDIS itself */
-       ret = rndis_init();
-       if (ret < 0) {
-               dev_err(f->dev, "rndis_init failed(ret:%d)\n", ret);
-               gether_cleanup(rndis->edev);
-               return ret;
-       }
-
        /* Android team reset "rndis_string_defs[0].id" when RNDIS unbinded
         * in f_rndis.c but, that makes failure of rndis_bind_config() by
         * the overflow of "next_string_id" value in usb_string_id().