Staging: lustre: Do not print message if kzalloc() failed.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Tue, 1 Mar 2016 11:28:45 +0000 (16:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:38:34 +0000 (19:38 -0800)
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c

index 465118c804bf57af033db27eff03a1808633d011..b2e8475a710d6b650f91095c63a9e7c90ce2b90d 100644 (file)
@@ -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;