[PATCH 2/2] Fix one warning
Jammy Zhou
Jammy.Zhou at amd.com
Thu Apr 23 20:44:06 PDT 2015
xf86drm.c:356:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
group = (serv_group >= 0) ? serv_group : DRM_DEV_GID;
^
Signed-off-by: Jammy Zhou <Jammy.Zhou at amd.com>
---
xf86drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xf86drm.c b/xf86drm.c
index 4d67861..fbda2aa 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -353,7 +353,7 @@ static int drmOpenDevice(dev_t dev, int minor, int type)
}
if (drm_server_info) {
- group = (serv_group >= 0) ? serv_group : DRM_DEV_GID;
+ group = serv_group;
chown_check_return(buf, user, group);
chmod(buf, devmode);
}
--
1.9.1
More information about the dri-devel
mailing list