svn commit: r222264 - head/sbin/geom/class/part

Andrey V. Elsukov ae at FreeBSD.org
Tue May 24 17:03:47 UTC 2011


Author: ae
Date: Tue May 24 17:03:46 2011
New Revision: 222264
URL: http://svn.freebsd.org/changeset/base/222264

Log:
  Simplify ALIGNDOWN macro.

Modified:
  head/sbin/geom/class/part/geom_part.c

Modified: head/sbin/geom/class/part/geom_part.c
==============================================================================
--- head/sbin/geom/class/part/geom_part.c	Tue May 24 16:49:34 2011	(r222263)
+++ head/sbin/geom/class/part/geom_part.c	Tue May 24 17:03:46 2011	(r222264)
@@ -295,7 +295,7 @@ fmtattrib(struct gprovider *pp)
 	return (buf);
 }
 
-#define	ALIGNDOWN(d, a)	((d) % (a) ? (d) - (d) % (a): (d))
+#define	ALIGNDOWN(d, a)	((d) - (d) % (a))
 #define	ALIGNUP(d, a)	((d) % (a) ? (d) - (d) % (a) + (a): (d))
 
 static int


More information about the svn-src-head mailing list