From: adilger Date: Mon, 2 Sep 2002 21:33:37 +0000 (+0000) Subject: Minor cleanups. X-Git-Tag: 0.5.6~31 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=51b02d104eb5c104dae817e97eeebec6b798640d;p=fs%2Flustre-release.git Minor cleanups. --- 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;