drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.
author=?utf-8?q?Felix_K=C3=BChling?= <fxkuehl@gmx.de>
Tue, 24 Oct 2006 13:28:23 +0000 (23:28 +1000)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:29 +0000 (15:53 +1100)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_drawable.c

index ce7a027b0ad48f13147b3eae5b256054545a17fa..de37d5f7456357867965e0881e262a1cdbab7cad 100644 (file)
@@ -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;