summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_pc98.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2005-11-30 22:15:00 +0000
committersobomax <sobomax@FreeBSD.org>2005-11-30 22:15:00 +0000
commit16e3e466ccc1974e0b78451d67ba767ee0856d43 (patch)
tree433753fcb5944fe5be18f76ad6e5440f6dc0ace9 /sys/geom/geom_pc98.c
parent59488a6d95a7da1b09575c8053c4ee8edd096b53 (diff)
downloadFreeBSD-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_pc98.c')
-rw-r--r--sys/geom/geom_pc98.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c
index a380f0d..4f89958 100644
--- a/sys/geom/geom_pc98.c
+++ b/sys/geom/geom_pc98.c
@@ -288,7 +288,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
sectorsize = cp->provider->sectorsize;
if (sectorsize % 512 != 0)
break;
- buf = g_read_data(cp, 0, 8192, &error);
+ buf = g_read_data(cp, 0, 8192, NULL);
if (buf == NULL)
break;
ms->fwsectors = fwsectors;
OpenPOWER on IntegriCloud