From 51b02d104eb5c104dae817e97eeebec6b798640d Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 2 Sep 2002 21:33:37 +0000 Subject: [PATCH] Minor cleanups. --- lustre/mds/mds_lov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 0fae285..a051d04 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -123,13 +123,13 @@ int mds_get_lovtgts(struct obd_device *obd, int tgt_count, uuid_t *uuidarray) GOTO(out, rc = PTR_ERR(f)); } - rc = lustre_fread(f, (char *)uuidarray, tgt_count * sizeof(uuid_t), + rc = lustre_fread(f, (char *)uuidarray, tgt_count * sizeof(*uuidarray), &f->f_pos); rc2 = filp_close(f, 0); if (rc2) CERROR("Error closing LOVTGTS file: rc = %d\n", rc2); - if (rc != tgt_count * sizeof(uuid_t)) { + if (rc != tgt_count * sizeof(*uuidarray)) { CERROR("Error reading LOVTGTS file: rc = %d\n", rc); if (rc >= 0) rc = -EIO; -- 1.8.3.1