summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorSandhya Bankar2016-03-01 12:28:45 +0100
committerGreg Kroah-Hartman2016-03-02 04:38:34 +0100
commit83ea341d9225d90a5ab9b6c07273d258f2b88fd2 (patch)
tree1dd81af78cb2b2bde4888347b291cc9338e568a1 /drivers/staging/lustre
parentStaging: lustre: Remove print statement on function failure (diff)
downloadkernel-qcow2-linux-83ea341d9225d90a5ab9b6c07273d258f2b88fd2.tar.gz
kernel-qcow2-linux-83ea341d9225d90a5ab9b6c07273d258f2b88fd2.tar.xz
kernel-qcow2-linux-83ea341d9225d90a5ab9b6c07273d258f2b88fd2.zip
Staging: lustre: Do not print message if kzalloc() failed.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_lib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c
index 465118c804bf..b2e8475a710d 100644
--- a/drivers/staging/lustre/lustre/llite/llite_lib.c
+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c
@@ -1932,13 +1932,8 @@ void ll_open_cleanup(struct super_block *sb, struct ptlrpc_request *open_req)
body = req_capsule_server_get(&open_req->rq_pill, &RMF_MDT_BODY);
op_data = kzalloc(sizeof(*op_data), GFP_NOFS);
- if (!op_data) {
- CWARN("%s: cannot allocate op_data to release open handle for "
- DFID "\n",
- ll_get_fsname(sb, NULL, 0), PFID(&body->fid1));
-
+ if (!op_data)
return;
- }
op_data->op_fid1 = body->fid1;
op_data->op_ioepoch = body->ioepoch;