Message ID | afc9e33f-65d2-ee56-ac4b-20f76a6489ab@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/usb/ttusb-dec/ttusb_dec.c b/drivers/media/usb/ttusb-dec/ttusb_dec.c index 76070da3b7c7..26d637684b30 100644 --- a/drivers/media/usb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/usb/ttusb-dec/ttusb_dec.c @@ -1659,10 +1659,8 @@ static int ttusb_dec_probe(struct usb_interface *intf, udev = interface_to_usbdev(intf); dec = kzalloc(sizeof(*dec), GFP_KERNEL); - if (!dec) { - printk("%s: couldn't allocate memory.\n", __func__); + if (!dec) return -ENOMEM; - } usb_set_intfdata(intf, (void *)dec);