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>
This commit is contained in:
Sudip Mukherjee 2015-07-21 18:57:25 +05:30 committed by Greg Kroah-Hartman
parent 8da24c9332
commit 586b06328c
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
pdvobjpriv = kzalloc(sizeof(*pdvobjpriv), GFP_KERNEL); pdvobjpriv = kzalloc(sizeof(*pdvobjpriv), GFP_KERNEL);
if (pdvobjpriv == NULL) if (pdvobjpriv == NULL)
goto exit; return NULL;
pdvobjpriv->pusbintf = usb_intf; pdvobjpriv->pusbintf = usb_intf;
pusbd = interface_to_usbdev(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); kfree(pdvobjpriv);
pdvobjpriv = NULL; pdvobjpriv = NULL;
} }
exit:
return pdvobjpriv; return pdvobjpriv;
} }