aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-08-16 09:03:18 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:05:20 -0400
commit89d969a39da8e9ee5db1c1fb49f55f4206a445ac (patch)
tree6669e904ee670832d143a178a2078c258147fedb
parent5772f81326904f2bfbb2bf2f365b3fb36ee3b7d8 (diff)
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>
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c
index bdd797071cb0..b9c78d03a7fe 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -357,11 +357,6 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
357 static unsigned char *ule_where = ule_hist, ule_dump = 0; 357 static unsigned char *ule_where = ule_hist, ule_dump = 0;
358#endif 358#endif
359 359
360 if (dev == NULL) {
361 printk( KERN_ERR "NO netdev struct!\n" );
362 return;
363 }
364
365 /* For all TS cells in current buffer. 360 /* For all TS cells in current buffer.
366 * Appearently, we are called for every single TS cell. 361 * Appearently, we are called for every single TS cell.
367 */ 362 */