]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6025): Net_ule(): fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Thu, 16 Aug 2007 13:03:18 +0000 (10:03 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:05:20 +0000 (22:05 -0300)
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>
drivers/media/dvb/dvb-core/dvb_net.c

index bdd797071cb0e6d4d3d56be1f9acb957792620d5..b9c78d03a7fe6f98e23c60995da650cc755847ef 100644 (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.
         */