Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89d969a3 authored by Adrian Bunk's avatar Adrian Bunk Committed by Mauro Carvalho Chehab
Browse files

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: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 5772f813
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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.
	 */