aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-07-13 17:46:19 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:24:43 -0400
commit372280d2a3593e90d8849a5dc5676d2e9799e3a3 (patch)
tree67b49ab8b91fd1fb54ebf06707abc037dfa6dedf /drivers/media/dvb
parentd67be61ebe5efaf9c4c11bf168781d678854c966 (diff)
V4L/DVB (5834): dvb-core: fix signedness warnings and const stripping
Make some pointers const, and then delete some now unnecessary casts, which were the wrong signedness anyway, being used to strip the const from another pointer. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c
index 4ebf33a5ffa2..acf026342ec5 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -347,7 +347,8 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
347{ 347{
348 struct dvb_net_priv *priv = dev->priv; 348 struct dvb_net_priv *priv = dev->priv;
349 unsigned long skipped = 0L; 349 unsigned long skipped = 0L;
350 u8 *ts, *ts_end, *from_where = NULL, ts_remain = 0, how_much = 0, new_ts = 1; 350 const u8 *ts, *ts_end, *from_where = NULL;
351 u8 ts_remain = 0, how_much = 0, new_ts = 1;
351 struct ethhdr *ethh = NULL; 352 struct ethhdr *ethh = NULL;
352 353
353#ifdef ULE_DEBUG 354#ifdef ULE_DEBUG
@@ -364,7 +365,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
364 /* For all TS cells in current buffer. 365 /* For all TS cells in current buffer.
365 * Appearently, we are called for every single TS cell. 366 * Appearently, we are called for every single TS cell.
366 */ 367 */
367 for (ts = (char *)buf, ts_end = (char *)buf + buf_len; ts < ts_end; /* no default incr. */ ) { 368 for (ts = buf, ts_end = buf + buf_len; ts < ts_end; /* no default incr. */ ) {
368 369
369 if (new_ts) { 370 if (new_ts) {
370 /* We are about to process a new TS cell. */ 371 /* We are about to process a new TS cell. */