usb: gadget: tcm_usb_gadge: fix to return error or 0 in tcm_usbg_drop_nexus()
[deliverable/linux.git] / drivers / usb / gadget / tcm_usb_gadget.c
index 4f7f76f00c7452239067a5b5498a500d26093f50..7cacd6ae818e3ef957efe728eeb9641ccbf42071 100644 (file)
@@ -1794,9 +1794,10 @@ static int tcm_usbg_drop_nexus(struct usbg_tpg *tpg)
        tpg->tpg_nexus = NULL;
 
        kfree(tv_nexus);
+       ret = 0;
 out:
        mutex_unlock(&tpg->tpg_mutex);
-       return 0;
+       return ret;
 }
 
 static ssize_t tcm_usbg_tpg_store_nexus(
This page took 0.027481 seconds and 5 git commands to generate.