diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-22 17:02:36 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-23 11:20:07 +0100 |
commit | 19409c8969380ec42e07e5ac2d29d4a33bea572d (patch) | |
tree | 86d17b9f587c36a3a988104bead007742bc52692 /sound | |
parent | [media] media_device: move allocation out of media_device_*_init (diff) | |
download | linux-19409c8969380ec42e07e5ac2d29d4a33bea572d.tar.xz linux-19409c8969380ec42e07e5ac2d29d4a33bea572d.zip |
[media] pvrusb2-io: no need to check if sp is not NULL
The buffer_complete() routine assumes that sp is not NULL,
otherwise it will fail completely. Btw, this is also
assumed at pvr2_buffer_queue(), with is the routine that
setups the URB handling.
So, remove the bogus for the callback at buffer_complete.
This fix this smatch warning:
drivers/media/usb/pvrusb2/pvrusb2-io.c:476 buffer_complete() warn: variable dereferenced before check 'sp' (see line 472)
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions