From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:12:53 +0000 (+0530) Subject: staging: lustre: ptlrpc: Remove useless initialisation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b55044062ce243868e9f1dbceda8a453fd61c7d3;p=linux-beck.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 c6c23f92348a..9bf13d7096a8 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);