summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-07-13 14:46:19 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-07-13 14:46:19 -0700
commit61c970e0a13a189f9ef4d9ed6a4003c2ef71d041 (patch)
treecb2c737fa711c70cfe94cc70fd45f0faaeb8a97f /linux/drivers/media/dvb/dvb-core
parent258077cc2f6099ebc962c8caac6672837eee5695 (diff)
downloadmediapointer-dvb-s2-61c970e0a13a189f9ef4d9ed6a4003c2ef71d041.tar.gz
mediapointer-dvb-s2-61c970e0a13a189f9ef4d9ed6a4003c2ef71d041.tar.bz2
dvb-core: fix signedness warnings and const stripping
From: Trent Piepho <xyzzy@speakeasy.org> 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>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c
index e180cdf53..9d49c459c 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c
@@ -360,7 +360,8 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
{
struct dvb_net_priv *priv = dev->priv;
unsigned long skipped = 0L;
- u8 *ts, *ts_end, *from_where = NULL, ts_remain = 0, how_much = 0, new_ts = 1;
+ const u8 *ts, *ts_end, *from_where = NULL;
+ u8 ts_remain = 0, how_much = 0, new_ts = 1;
struct ethhdr *ethh = NULL;
#ifdef ULE_DEBUG
@@ -377,7 +378,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
/* For all TS cells in current buffer.
* Appearently, we are called for every single TS cell.
*/
- for (ts = (char *)buf, ts_end = (char *)buf + buf_len; ts < ts_end; /* no default incr. */ ) {
+ for (ts = buf, ts_end = buf + buf_len; ts < ts_end; /* no default incr. */ ) {
if (new_ts) {
/* We are about to process a new TS cell. */