X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fevents.c;h=96e68d45a3207dd4da23fe09652b4338d7ab08d0;hp=6c3be43c9c04dd3292f11a10ce164a8931e0e7d6;hb=3485238de84848740aaaa05f78da2cb53b81d3a0;hpb=d6763552ae1d46837754d5cd8c9e2da2270a9ecd diff --git a/lustre/ptlrpc/events.c b/lustre/ptlrpc/events.c index 6c3be43..96e68d4 100644 --- a/lustre/ptlrpc/events.c +++ b/lustre/ptlrpc/events.c @@ -614,7 +614,7 @@ int ptlrpc_ni_init(void) rc = LNetNIInit(pid); if (rc < 0) { CDEBUG (D_NET, "Can't init network interface: %d\n", rc); - return (-ENOENT); + return rc; } /* CAVEAT EMPTOR: how we process portals events is _radically_ @@ -637,7 +637,7 @@ int ptlrpc_ni_init(void) CERROR ("Failed to allocate event queue: %d\n", rc); LNetNIFini(); - return (-ENOMEM); + return rc; } #ifndef __KERNEL__ @@ -804,7 +804,7 @@ int ptlrpc_init_portals(void) if (rc != 0) { CERROR("network initialisation failed\n"); - return -EIO; + return rc; } #ifndef __KERNEL__ INIT_LIST_HEAD(&liblustre_wait_callbacks);