Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e275bce
)
Fix minor error in error checking.
author
adilger
<adilger>
Mon, 22 Apr 2002 18:12:37 +0000
(18:12 +0000)
committer
adilger
<adilger>
Mon, 22 Apr 2002 18:12:37 +0000
(18:12 +0000)
lustre/mdc/mdc_request.c
patch
|
blob
|
history
diff --git
a/lustre/mdc/mdc_request.c
b/lustre/mdc/mdc_request.c
index
98b3973
..
2b0cd5f
100644
(file)
--- 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: