From 53fb12dbef9ba18df62ee71757c14836b44b6f01 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Tue, 24 May 2011 17:03:46 +0000 Subject: [PATCH] Simplify ALIGNDOWN macro. --- sbin/geom/class/part/geom_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c index e11edd5ecb85..278030d71a2b 100644 --- a/sbin/geom/class/part/geom_part.c +++ b/sbin/geom/class/part/geom_part.c @@ -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