mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
[media] em28xx_dvb: only call the software filter if data
Several URBs will be simply not filled. Don't call the DVB core software filter for those empty URBs. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
cd701c8975
commit
ffdeca885e
@ -161,6 +161,8 @@ static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb)
|
||||
if (urb->status != -EPROTO)
|
||||
continue;
|
||||
}
|
||||
if (!urb->actual_length)
|
||||
continue;
|
||||
dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer,
|
||||
urb->actual_length);
|
||||
} else {
|
||||
@ -170,6 +172,8 @@ static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb)
|
||||
if (urb->iso_frame_desc[i].status != -EPROTO)
|
||||
continue;
|
||||
}
|
||||
if (!urb->iso_frame_desc[i].actual_length)
|
||||
continue;
|
||||
dvb_dmx_swfilter(&dev->dvb->demux,
|
||||
urb->transfer_buffer +
|
||||
urb->iso_frame_desc[i].offset,
|
||||
|
Loading…
Reference in New Issue
Block a user