Commit 507c0185 authored by =?utf-8?q?Felix_K=C3=BChling?='s avatar =?utf-8?q?Felix_K=C3=BChling?= Committed by airlied

drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent cdec2f82
...@@ -132,7 +132,8 @@ int drm_rmdraw(DRM_IOCTL_ARGS) ...@@ -132,7 +132,8 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
{ {
DRM_DEVICE; DRM_DEVICE;
drm_draw_t draw; drm_draw_t draw;
unsigned int id, idx, shift; int id, idx;
unsigned int shift;
unsigned long irqflags; unsigned long irqflags;
u32 *bitfield = dev->drw_bitfield; u32 *bitfield = dev->drw_bitfield;
unsigned int bitfield_length = dev->drw_bitfield_length; unsigned int bitfield_length = dev->drw_bitfield_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment