diff options
author | sobomax <sobomax@FreeBSD.org> | 2005-11-30 22:15:00 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2005-11-30 22:15:00 +0000 |
commit | 16e3e466ccc1974e0b78451d67ba767ee0856d43 (patch) | |
tree | 433753fcb5944fe5be18f76ad6e5440f6dc0ace9 /sys/geom/geom_vol_ffs.c | |
parent | 59488a6d95a7da1b09575c8053c4ee8edd096b53 (diff) | |
download | FreeBSD-src-16e3e466ccc1974e0b78451d67ba767ee0856d43.zip FreeBSD-src-16e3e466ccc1974e0b78451d67ba767ee0856d43.tar.gz |
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
Diffstat (limited to 'sys/geom/geom_vol_ffs.c')
-rw-r--r-- | sys/geom/geom_vol_ffs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_vol_ffs.c b/sys/geom/geom_vol_ffs.c index f6fd88e..c21b1b6 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 */ |