From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:14:20 +0000 (+0530) Subject: staging: skein: Remove useless initialisation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=779fcc8410757386bac35ddf4ba026943f2f24f3;p=linux-beck.git staging: skein: 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/skein/skein_api.c b/drivers/staging/skein/skein_api.c index e6c2b06aef80..46a74fc40375 100644 --- a/drivers/staging/skein/skein_api.c +++ b/drivers/staging/skein/skein_api.c @@ -127,7 +127,7 @@ int skein_mac_init(struct skein_ctx *ctx, const u8 *key, size_t key_len, void skein_reset(struct skein_ctx *ctx) { size_t x_len = 0; - u64 *x = NULL; + u64 *x; /* * The following two lines rely of the fact that the real Skein