aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/raid/md_intel.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-02-25 10:18:11 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-02-25 10:18:11 +0000
commit0b1b7c2cecedeae66e2c15471f0f060782e08fa7 (patch)
treee98dca437262677c613acd19777a9fdd5151216f /sys/geom/raid/md_intel.c
parent678b68798ff9753276cb4a8638573d5733f21045 (diff)
downloadsrc-0b1b7c2cecedeae66e2c15471f0f060782e08fa7.tar.gz
src-0b1b7c2cecedeae66e2c15471f0f060782e08fa7.zip
Replace constant with proper sizeof().
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=279278
Diffstat (limited to 'sys/geom/raid/md_intel.c')
-rw-r--r--sys/geom/raid/md_intel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/raid/md_intel.c b/sys/geom/raid/md_intel.c
index 3ec904c9938e..9d6e44448788 100644
--- a/sys/geom/raid/md_intel.c
+++ b/sys/geom/raid/md_intel.c
@@ -1487,7 +1487,6 @@ g_raid_md_taste_intel(struct g_raid_md_object *md, struct g_class *mp,
/* Read metadata from device. */
meta = NULL;
- vendor = 0xffff;
disk_pos = 0;
g_topology_unlock();
error = g_raid_md_get_label(cp, serial, sizeof(serial));
@@ -1496,7 +1495,8 @@ g_raid_md_taste_intel(struct g_raid_md_object *md, struct g_class *mp,
pp->name, error);
goto fail2;
}
- len = 2;
+ vendor = 0xffff;
+ len = sizeof(vendor);
if (pp->geom->rank == 1)
g_io_getattr("GEOM::hba_vendor", cp, &len, &vendor);
meta = intel_meta_read(cp);