diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-13 11:17:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 11:53:19 -0500 |
commit | ae24601b47c3f4a56545ef4cd4e7c821ac1db598 (patch) | |
tree | 562258e9fdec32a9b7410a8467dc5315bdbfe8c3 /drivers/media/dvb | |
parent | 9d9d6baeca6f9174b8e7fd219a62a8fa09d61cc7 (diff) |
V4L/DVB (3485): BUG_ON() Conversion in drivers/video/media
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 6 | ||||
-rw-r--r-- | drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index aef4f58d712d..7497b1e8d883 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -1090,11 +1090,9 @@ static int dvb_get_stc(struct dmx_demux *demux, unsigned int num, | |||
1090 | struct av7110 *av7110; | 1090 | struct av7110 *av7110; |
1091 | 1091 | ||
1092 | /* pointer casting paranoia... */ | 1092 | /* pointer casting paranoia... */ |
1093 | if (!demux) | 1093 | BUG_ON(!demux); |
1094 | BUG(); | ||
1095 | dvbdemux = (struct dvb_demux *) demux->priv; | 1094 | dvbdemux = (struct dvb_demux *) demux->priv; |
1096 | if (!dvbdemux) | 1095 | BUG_ON(!dvbdemux); |
1097 | BUG(); | ||
1098 | av7110 = (struct av7110 *) dvbdemux->priv; | 1096 | av7110 = (struct av7110 *) dvbdemux->priv; |
1099 | 1097 | ||
1100 | dprintk(4, "%p\n", av7110); | 1098 | dprintk(4, "%p\n", av7110); |
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index ecb15d4ecf81..248fdc7accfb 100644 --- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -688,8 +688,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len) | |||
688 | memcpy(ttusb->muxpack + ttusb->muxpack_ptr, | 688 | memcpy(ttusb->muxpack + ttusb->muxpack_ptr, |
689 | data, avail); | 689 | data, avail); |
690 | ttusb->muxpack_ptr += avail; | 690 | ttusb->muxpack_ptr += avail; |
691 | if (ttusb->muxpack_ptr > 264) | 691 | BUG_ON(ttusb->muxpack_ptr > 264); |
692 | BUG(); | ||
693 | data += avail; | 692 | data += avail; |
694 | len -= avail; | 693 | len -= avail; |
695 | /* determine length */ | 694 | /* determine length */ |