diff options
author | =?utf-8?q?Felix_K=C3=BChling?= <fxkuehl@gmx.de> | 2006-10-24 09:28:23 -0400 |
---|---|---|
committer | airlied <airlied@linux.ie> | 2006-12-06 23:53:29 -0500 |
commit | 507c0185a72e89002757a58f6c64de3df84da0de (patch) | |
tree | 028d54b6b4294a444be8280d48751ace3a01ec2d | |
parent | cdec2f82b11afbe4933fa9a9b3ed567db14fd237 (diff) |
drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r-- | drivers/char/drm/drm_drawable.c | 3 |
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) | |||
132 | { | 132 | { |
133 | DRM_DEVICE; | 133 | DRM_DEVICE; |
134 | drm_draw_t draw; | 134 | drm_draw_t draw; |
135 | unsigned int id, idx, shift; | 135 | int id, idx; |
136 | unsigned int shift; | ||
136 | unsigned long irqflags; | 137 | unsigned long irqflags; |
137 | u32 *bitfield = dev->drw_bitfield; | 138 | u32 *bitfield = dev->drw_bitfield; |
138 | unsigned int bitfield_length = dev->drw_bitfield_length; | 139 | unsigned int bitfield_length = dev->drw_bitfield_length; |