Skip to content

Commit

Permalink
V4L/DVB (6025): Net_ule(): fix check-after-use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 5772f81 commit 89d969a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/media/dvb/dvb-core/dvb_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 89d969a

Please sign in to comment.