diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 01:22:22 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 01:22:22 +0200 |
commit | 19050620d7676a007898ae8404ad4edc757f9d2f (patch) | |
tree | ba596ec5d3206f3e46cd899eb02473922d26abba /linux/drivers/media/video/cx18/cx18-queue.c | |
parent | 7e579fead10182b9f9494e0f2b483dd62e4e6c75 (diff) | |
download | mediapointer-dvb-s2-19050620d7676a007898ae8404ad4edc757f9d2f.tar.gz mediapointer-dvb-s2-19050620d7676a007898ae8404ad4edc757f9d2f.tar.bz2 |
v4l-dvb: fix a bunch of sparse warnings
From: Hans Verkuil <hverkuil@xs4all.nl>
Fixed a lot of sparse warnings: mostly warnings about shadowed variables
and signed/unsigned mismatches.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-queue.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-queue.c b/linux/drivers/media/video/cx18/cx18-queue.c index 8a4dd821f..a31da49f9 100644 --- a/linux/drivers/media/video/cx18/cx18-queue.c +++ b/linux/drivers/media/video/cx18/cx18-queue.c @@ -217,10 +217,10 @@ int cx18_stream_alloc(struct cx18_stream *s) s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); - if (((char *)&cx->scb->cpu_mdl[cx->mdl_offset + s->buffers] - - (char *)cx->scb) > SCB_RESERVED_SIZE) { - unsigned bufsz = (((char *)cx->scb) + SCB_RESERVED_SIZE - - ((char *)cx->scb->cpu_mdl)); + if (((char __iomem *)&cx->scb->cpu_mdl[cx->mdl_offset + s->buffers] - + (char __iomem *)cx->scb) > SCB_RESERVED_SIZE) { + unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE - + ((char __iomem *)cx->scb->cpu_mdl)); CX18_ERR("Too many buffers, cannot fit in SCB area\n"); CX18_ERR("Max buffers = %zd\n", |