summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2015-12-04 03:44:12 +0000
committerken <ken@FreeBSD.org>2015-12-04 03:44:12 +0000
commit5a6402b7b4b65d5b297a1fa59523fdc1d03631de (patch)
treec2b4c4b3c080c8ff014611106256b4c158b0089d /sys/geom
parent134df9b39d33d06bb7a0f331372a746260cddc20 (diff)
downloadFreeBSD-src-5a6402b7b4b65d5b297a1fa59523fdc1d03631de.zip
FreeBSD-src-5a6402b7b4b65d5b297a1fa59523fdc1d03631de.tar.gz
Fix a style issue in g_disk_limit().
Noticed by: bdrewery MFC after: 1 week
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_disk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index 7d31897..1943430 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -358,7 +358,9 @@ static bool
g_disk_limit(struct disk *dp, struct bio *bp)
{
bool limited = false;
- off_t maxsz = g_disk_maxsize(dp, bp);
+ off_t maxsz;
+
+ maxsz = g_disk_maxsize(dp, bp);
/*
* XXX: If we have a stripesize we should really use it here.
OpenPOWER on IntegriCloud