diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-16 10:03:18 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-16 10:03:18 -0300 |
commit | 126dee063f6844da5f6869db47e20b4533bdd06d (patch) | |
tree | 53ef232d9220d48600140288f047023e465a5038 /linux/drivers/media/dvb/dvb-core | |
parent | 6368c6b644d30ab94b9548f51bfedff5ca5b4191 (diff) | |
download | mediapointer-dvb-s2-126dee063f6844da5f6869db47e20b4533bdd06d.tar.gz mediapointer-dvb-s2-126dee063f6844da5f6869db47e20b4533bdd06d.tar.bz2 |
Net_ule(): fix check-after-use
From: Adrian Bunk <bunk@kernel.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_net.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c index 9d49c459c..76c33feaa 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c @@ -370,11 +370,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. */ |