]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] uvcvideo: Fix empty packet statistic
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Mon, 3 Apr 2017 11:25:32 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 10 Apr 2017 10:41:27 +0000 (07:41 -0300)
commit360a3a90c6261fe24a959ff38f8f6c3a8468f23c
treeb65469d666c159c8dfb994dc9c3d2de92cb1b772
parentf098268bd68b7bf1ec814ea2bf0d05c7505b8e43
[media] uvcvideo: Fix empty packet statistic

The frame counters are inadvertently counting packets with content as
empty.

Fix it by correcting the logic expression

Fixes: 7bc5edb00bbd [media] uvcvideo: Extract video stream statistics
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_video.c