X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Fselftest%2Fconsole.c;h=ccaced774ec702dbb5f7c8f545dc2cf06b078b4b;hp=f2500438709cc9d631d01ae10d93030b4dc6546f;hb=135b5c0009e5201ac70394ee1fe98e523fe86072;hpb=66c08998491c149db2e908daf03bb3296eccda45 diff --git a/lnet/selftest/console.c b/lnet/selftest/console.c index f250043..ccaced7 100644 --- a/lnet/selftest/console.c +++ b/lnet/selftest/console.c @@ -1491,11 +1491,9 @@ static int lstcon_ndlist_stat(struct list_head *ndlist, int timeout, struct list_head __user *result_up) { - struct list_head head; + LIST_HEAD(head); struct lstcon_rpc_trans *trans; - int rc; - - INIT_LIST_HEAD(&head); + int rc; rc = lstcon_rpc_trans_ndlist(ndlist, &head, LST_TRANS_STATQRY, NULL, NULL, &trans);