diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:03:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 19:13:54 +0200 |
commit | ec70abd1fa1095d4a389914a5fcb99d7dc2a1375 (patch) | |
tree | 116168f115862b9c2939d0bc326a9d14611e5997 | |
parent | 3b2630dcf4ce925cfd6aa376766f5a2d59c5f74b (diff) | |
download | op-kernel-dev-ec70abd1fa1095d4a389914a5fcb99d7dc2a1375.zip op-kernel-dev-ec70abd1fa1095d4a389914a5fcb99d7dc2a1375.tar.gz |
media: usb: stk1160: stk1160-video: don't print error when allocating urb fails
kmalloc will print enough information in case of failure.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/media/usb/stk1160/stk1160-video.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c index 6ecb0b4..ce8ebbe 100644 --- a/drivers/media/usb/stk1160/stk1160-video.c +++ b/drivers/media/usb/stk1160/stk1160-video.c @@ -457,10 +457,8 @@ int stk1160_alloc_isoc(struct stk1160 *dev) for (i = 0; i < num_bufs; i++) { urb = usb_alloc_urb(max_packets, GFP_KERNEL); - if (!urb) { - stk1160_err("cannot alloc urb[%d]\n", i); + if (!urb) goto free_i_bufs; - } dev->isoc_ctl.urb[i] = urb; #ifndef CONFIG_DMA_NONCOHERENT |