From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:12:53 +0000 (+0530) Subject: staging: lustre: ptlrpc: Remove useless initialisation X-Git-Tag: v4.4-rc1~125^2~590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b55044062ce243868e9f1dbceda8a453fd61c7d3;p=platform%2Fkernel%2Flinux-exynos.git staging: lustre: ptlrpc: Remove useless initialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lustre/lustre/ptlrpc/client.c index c6c23f9..9bf13d7 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/client.c +++ b/drivers/staging/lustre/lustre/ptlrpc/client.c @@ -697,7 +697,7 @@ static inline struct ptlrpc_request *__ptlrpc_request_alloc(struct obd_import *imp, struct ptlrpc_request_pool *pool) { - struct ptlrpc_request *request = NULL; + struct ptlrpc_request *request; request = ptlrpc_request_cache_alloc(GFP_NOFS);