2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00

V4L/DVB (6025): Net_ule(): fix check-after-use

The Coverity checker spotted that we'd have already oops'ed if "dev"
was NULL.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Adrian Bunk 2007-08-16 10:03:18 -03:00 committed by Mauro Carvalho Chehab
parent 5772f81326
commit 89d969a39d

View File

@ -357,11 +357,6 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
static unsigned char *ule_where = ule_hist, ule_dump = 0;
#endif
if (dev == NULL) {
printk( KERN_ERR "NO netdev struct!\n" );
return;
}
/* For all TS cells in current buffer.
* Appearently, we are called for every single TS cell.
*/