From: adilger Date: Mon, 22 Apr 2002 18:12:37 +0000 (+0000) Subject: Fix minor error in error checking. X-Git-Tag: 0.4.2~359 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5f094238d69a776c880883ea3d864454996b5c61;p=fs%2Flustre-release.git Fix minor error in error checking. --- 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: