Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2011 13:22:20 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217263 - head/sys/geom/nop
Message-ID:  <201101111322.p0BDMKVN021515@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue Jan 11 13:22:20 2011
New Revision: 217263
URL: http://svn.freebsd.org/changeset/base/217263

Log:
  Remove redundant check.
  
  MFC after:	1 week

Modified:
  head/sys/geom/nop/g_nop.c

Modified: head/sys/geom/nop/g_nop.c
==============================================================================
--- head/sys/geom/nop/g_nop.c	Tue Jan 11 11:42:22 2011	(r217262)
+++ head/sys/geom/nop/g_nop.c	Tue Jan 11 13:22:20 2011	(r217263)
@@ -176,8 +176,7 @@ g_nop_create(struct gctl_req *req, struc
 		gctl_error(req, "Invalid secsize for provider %s.", pp->name);
 		return (EINVAL);
 	}
-	if (size % secsize != 0)
-		size -= size % secsize;
+	size -= size % secsize;
 	snprintf(name, sizeof(name), "%s%s", pp->name, G_NOP_SUFFIX);
 	LIST_FOREACH(gp, &mp->geom, geom) {
 		if (strcmp(gp->name, name) == 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101111322.p0BDMKVN021515>