X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_mount.c;h=1d37c9dd4d5b5018110e122581efa9c2089c0260;hp=b9c14d2193ff68f675be035e9801e53d7abcc43a;hb=0098396983e1075668414aa5298a4990e61ffbda;hpb=135b5c0009e5201ac70394ee1fe98e523fe86072 diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index b9c14d2..1d37c9d 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1265,7 +1265,7 @@ try_again: */ static int lmd_parse_nidlist(char *buf, char **endh) { - struct list_head nidlist; + LIST_HEAD(nidlist); char *endp = buf; char tmp; int rc = 0; @@ -1283,7 +1283,6 @@ static int lmd_parse_nidlist(char *buf, char **endh) tmp = *endp; *endp = '\0'; - INIT_LIST_HEAD(&nidlist); if (cfs_parse_nidlist(buf, strlen(buf), &nidlist) <= 0) rc = 1; cfs_free_nidlist(&nidlist);