aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_vol_ffs.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2005-11-30 22:15:00 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2005-11-30 22:15:00 +0000
commitb53a1cf306d13c6d1a50453edb484c62eda7baf1 (patch)
tree433753fcb5944fe5be18f76ad6e5440f6dc0ace9 /sys/geom/geom_vol_ffs.c
parent14edf864f146f402372d728f361096e6d9277abe (diff)
downloadsrc-b53a1cf306d13c6d1a50453edb484c62eda7baf1.tar.gz
src-b53a1cf306d13c6d1a50453edb484c62eda7baf1.zip
Don't pass error value pointer to g_read_data(9) at all if we don't
have any use of it. Suggested by: pjd
Notes
Notes: svn path=/head/; revision=152971
Diffstat (limited to 'sys/geom/geom_vol_ffs.c')
-rw-r--r--sys/geom/geom_vol_ffs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_vol_ffs.c b/sys/geom/geom_vol_ffs.c
index f6fd88eb6cb1..c21b1b6c81f5 100644
--- a/sys/geom/geom_vol_ffs.c
+++ b/sys/geom/geom_vol_ffs.c
@@ -62,7 +62,7 @@ g_vol_ffs_taste(struct g_class *mp, struct g_provider *pp, int flags)
struct g_geom *gp;
struct g_consumer *cp;
struct g_vol_ffs_softc *ms;
- int error, sb, superblock;
+ int sb, superblock;
struct fs *fs;
g_trace(G_T_TOPOLOGY, "vol_taste(%s,%s)", mp->name, pp->name);
@@ -99,7 +99,7 @@ g_vol_ffs_taste(struct g_class *mp, struct g_provider *pp, int flags)
continue;
fs = (struct fs *) g_read_data(cp, superblock,
- SBLOCKSIZE, &error);
+ SBLOCKSIZE, NULL);
if (fs == NULL)
continue;
/* Check for magic and make sure things are the right size */