diff options
Diffstat (limited to 'drivers/net/irda/mcs7780.c')
-rw-r--r-- | drivers/net/irda/mcs7780.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/irda/mcs7780.c b/drivers/net/irda/mcs7780.c index 1a00b5990cb8..f07c340990da 100644 --- a/drivers/net/irda/mcs7780.c +++ b/drivers/net/irda/mcs7780.c | |||
@@ -920,8 +920,10 @@ static int mcs_probe(struct usb_interface *intf, | |||
920 | 920 | ||
921 | ndev->netdev_ops = &mcs_netdev_ops; | 921 | ndev->netdev_ops = &mcs_netdev_ops; |
922 | 922 | ||
923 | if (!intf->cur_altsetting) | 923 | if (!intf->cur_altsetting) { |
924 | ret = -ENOMEM; | ||
924 | goto error2; | 925 | goto error2; |
926 | } | ||
925 | 927 | ||
926 | ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint, | 928 | ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint, |
927 | intf->cur_altsetting->desc.bNumEndpoints); | 929 | intf->cur_altsetting->desc.bNumEndpoints); |