From 5f094238d69a776c880883ea3d864454996b5c61 Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 22 Apr 2002 18:12:37 +0000 Subject: [PATCH] Fix minor error in error checking. --- lustre/mdc/mdc_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 98b3973..2b0cd5f 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -244,7 +244,7 @@ static int request_ioctl(struct inode *inode, struct file *file, ptlrpc_init_client(NULL, MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL, &cl); conn = ptlrpc_uuid_to_connection("mds"); - if (err) { + if (!conn) { CERROR("cannot create client\n"); RETURN(-EINVAL); } @@ -329,7 +329,7 @@ static int request_ioctl(struct inode *inode, struct file *file, } default: - RETURN(-EINVAL); + GOTO(out, err = -EINVAL); } out: -- 1.8.3.1