diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 08:35:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 11:26:35 -0300 |
commit | c65171cf6fb1f9b525ea281b2297a4753c3a049d (patch) | |
tree | d7ebd45f1ee03e98b8e65409c167aa37cd7f0051 /drivers/media/pci/ivtv/ivtv-alsa-mixer.h | |
parent | 91aff0c5d90fe57b81e2295437affc34d205a2d2 (diff) | |
download | blackbird-obmc-linux-c65171cf6fb1f9b525ea281b2297a4753c3a049d.tar.gz blackbird-obmc-linux-c65171cf6fb1f9b525ea281b2297a4753c3a049d.zip |
[media] bt8xx: remove needless check
As reported by smatch:
drivers/media/pci/bt8xx/dst_ca.c:323 ca_get_message() warn: this array is probably non-NULL. 'p_ca_message->msg'
drivers/media/pci/bt8xx/dst_ca.c:498 ca_send_message() warn: this array is probably non-NULL. 'p_ca_message->msg'
Those two checks are needless/useless, as the ca_msg struct is
declared as:
typedef struct ca_msg {
unsigned int index;
unsigned int type;
unsigned int length;
unsigned char msg[256];
} ca_msg_t;
So, if the p_ca_message pointer is not null, msg will also be
not null.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-alsa-mixer.h')
0 files changed, 0 insertions, 0 deletions