Skip to content
Commit be521bf7 authored by Hans Verkuil's avatar Hans Verkuil
Browse files

media: pci: cx18: if cx == NULL, then don't use it.



If the cx NULL pointer check is true, then it reports
an error with CX18_ERR, but that uses cx. Replace it with
pr_err.

Reported by smatch:

drivers/media/pci/cx18/cx18-mailbox.c:834 cx18_vapi() error: we previously assumed 'cx' could be null (see line 833)

Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 65b8c8cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment