Correct the Solaris definitions of atomic_add & atomic_dec
[platform/upstream/libdrm.git] / xf86drm.c
index 364fe17..220aaa1 100644 (file)
--- a/xf86drm.c
+++ b/xf86drm.c
 #define DRM_MAJOR 226          /* Linux */
 #endif
 
-#ifndef DRM_MAX_MINOR
-#define DRM_MAX_MINOR 16
-#endif
-
 /*
  * This definition needs to be changed on some systems if dev_t is a structure.
  * If there is a header file we can get it from, there would be best.
@@ -2496,19 +2492,12 @@ void drmCloseOnce(int fd)
 
 int drmSetMaster(int fd)
 {
-       int ret;
-
-       fprintf(stderr,"Setting master \n");
-       ret = ioctl(fd, DRM_IOCTL_SET_MASTER, 0);
-       return ret;
+       return ioctl(fd, DRM_IOCTL_SET_MASTER, 0);
 }
 
 int drmDropMaster(int fd)
 {
-       int ret;
-       fprintf(stderr,"Dropping master \n");
-       ret = ioctl(fd, DRM_IOCTL_DROP_MASTER, 0);
-       return ret;
+       return ioctl(fd, DRM_IOCTL_DROP_MASTER, 0);
 }
 
 char *drmGetDeviceNameFromFd(int fd)