Message ID | 0be95f0b-cc0e-27cc-5ec1-b5bc1bc48496@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c index f06efcd70c14..2b39834309d2 100644 --- a/drivers/media/usb/hdpvr/hdpvr-video.c +++ b/drivers/media/usb/hdpvr/hdpvr-video.c @@ -136,6 +136,5 @@ int hdpvr_free_buffers(struct hdpvr_device *dev) int hdpvr_alloc_buffers(struct hdpvr_device *dev, uint count) { uint i; - int retval = -ENOMEM; u8 *mem; struct hdpvr_buffer *buf; @@ -181,6 +180,6 @@ int hdpvr_alloc_buffers(struct hdpvr_device *dev, uint count) kfree(buf); exit: hdpvr_free_buffers(dev); - return retval; + return -ENOMEM; }