summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_mbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_mbr.c')
-rw-r--r--sys/geom/geom_mbr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index af56649..8e951e1 100644
--- a/sys/geom/geom_mbr.c
+++ b/sys/geom/geom_mbr.c
@@ -52,7 +52,6 @@
#include <sys/mutex.h>
#endif
-#include <sys/errno.h>
#include <sys/disklabel.h>
#include <sys/sbuf.h>
#include <geom/geom.h>
@@ -196,7 +195,7 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist)
error = g_getattr("GEOM::sectorsize", cp, &sectorsize);
if (error)
break;
- if (!error && sectorsize != 512)
+ if (sectorsize != 512)
break;
gsp->frontstuff = sectorsize * fwsectors;
#ifdef GEOM_GPT
@@ -358,7 +357,7 @@ g_mbrext_taste(struct g_class *mp, struct g_provider *pp, int insist __unused)
error = g_getattr("GEOM::sectorsize", cp, &sectorsize);
if (error)
break;
- if (!error && sectorsize != 512)
+ if (sectorsize != 512)
break;
gsp->frontstuff = sectorsize * fwsectors;
for (;;) {
OpenPOWER on IntegriCloud