]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: ptlrpc: Remove useless initialisation
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 15 Oct 2015 08:12:53 +0000 (13:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:29:33 +0000 (22:29 -0700)
Remove intialisation of a variable that is immediately reassigned.

The semantic patch used to find this is:

// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@

T x
- = C
 ;
x = e;
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/client.c

index c6c23f92348a846fd8138833670bf3eee57290c2..9bf13d7096a8d256294c7d230a981a7654a43452 100644 (file)
@@ -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);