summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-07-21 18:57:25 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-22 20:59:54 -0700
commit586b06328c16c04a7040c92b7a13aea0447e35ec (patch)
treed56095aea5922133a2b5de00a182d0ed332662f7 /drivers/staging/rtl8188eu
parent8da24c93327037a6fb1f760f5fc70e33c9abaefb (diff)
downloadlinux-586b06328c16c04a7040c92b7a13aea0447e35ec.tar.bz2
staging: rtl8188eu: remove label
Directly return NULL instead of using another label and goto. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/usb_intf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index f6c6f4a9982c..09a918ec6e10 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -66,7 +66,7 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
pdvobjpriv = kzalloc(sizeof(*pdvobjpriv), GFP_KERNEL);
if (pdvobjpriv == NULL)
- goto exit;
+ return NULL;
pdvobjpriv->pusbintf = usb_intf;
pusbd = interface_to_usbdev(usb_intf);
@@ -121,7 +121,7 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
kfree(pdvobjpriv);
pdvobjpriv = NULL;
}
-exit:
+
return pdvobjpriv;
}