summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
author=?utf-8?q?Felix_K=C3=BChling?= <fxkuehl@gmx.de>2006-10-24 15:28:23 +0200
committerairlied <airlied@linux.ie>2006-12-07 05:53:29 +0100
commit507c0185a72e89002757a58f6c64de3df84da0de (patch)
tree028d54b6b4294a444be8280d48751ace3a01ec2d /drivers/char
parentdrm: Change first valid DRM drawable ID to be 1 instead of 0. (diff)
downloadlinux-507c0185a72e89002757a58f6c64de3df84da0de.tar.xz
linux-507c0185a72e89002757a58f6c64de3df84da0de.zip
drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/drm_drawable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_drawable.c b/drivers/char/drm/drm_drawable.c
index ce7a027b0ad4..de37d5f74563 100644
--- a/drivers/char/drm/drm_drawable.c
+++ b/drivers/char/drm/drm_drawable.c
@@ -132,7 +132,8 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
{
DRM_DEVICE;
drm_draw_t draw;
- unsigned int id, idx, shift;
+ int id, idx;
+ unsigned int shift;
unsigned long irqflags;
u32 *bitfield = dev->drw_bitfield;
unsigned int bitfield_length = dev->drw_bitfield_length;