From: =?utf-8?q?Felix_K=C3=BChling?= Date: Tue, 24 Oct 2006 13:28:23 +0000 (+1000) Subject: drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended. X-Git-Tag: v2.6.20-rc1~34^2~20^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=507c0185a72e89002757a58f6c64de3df84da0de;p=linux-2.6-omap-h63xx.git drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended. Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/drm_drawable.c b/drivers/char/drm/drm_drawable.c index ce7a027b0ad..de37d5f7456 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;