Author: kib
Date: Sun Aug  6 12:27:20 2017
New Revision: 322118
URL: https://svnweb.freebsd.org/changeset/base/322118

Log:
  Remove trivial comments.  Remove and-ing with UINT_MAX for minor(),
  cast to int already does the required truncation of significant bits.
  
  Requested and reviewed by:    bde
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/sys/types.h

Modified: head/sys/sys/types.h
==============================================================================
--- head/sys/sys/types.h        Sun Aug  6 10:07:25 2017        (r322117)
+++ head/sys/sys/types.h        Sun Aug  6 12:27:20 2017        (r322118)
@@ -364,9 +364,9 @@ __bitcount64(__uint64_t _x)
 
 #include <sys/select.h>
 
-#define        major(x)        ((int)((dev_t)(x) >> 32))       /* major number 
*/
-#define        minor(x)        ((int)((x) & 0xffffffff))       /* minor number 
*/
-#define        makedev(x, y)   (((dev_t)(x) << 32) | (unsigned)(y)) /* create 
dev_t */
+#define        major(x)        ((int)((dev_t)(x) >> 32))
+#define        minor(x)        ((int)(x))
+#define        makedev(x, y)   (((dev_t)(x) << 32) | (unsigned)(y))
 
 /*
  * These declarations belong elsewhere, but are repeated here and in
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to