staging: vt6656: Remove unnecesssary NULL check
authorTobias Klauser <tklauser@distanz.ch>
Fri, 25 Apr 2014 13:39:12 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:23:03 +0000 (13:23 -0700)
commit34bdb981f7cb446259b0999d40f090c16f732eca
tree2156bce5412d8e07e8cd4c2321e310f45bdc77dc
parent91ed9a7cddf1130af3a3aef0325d6e6d08eaffb2
staging: vt6656: Remove unnecesssary NULL check

pFifoHead points to tx_buffer->fifo_head which can never be NULL.
We also don't need to check for tx_buffer being NULL instead, since it
always points to ->Data of struct vnt_usb_send_context - the pointer to
which was checked before calling s_vGenerateTxParameter().

Silences a dereference before NULL check warning reported by the coverity
scanner in CID 1127221.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c