summaryrefslogtreecommitdiff
path: root/drivers/staging/skein/skein_api.c
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-15 13:44:20 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 23:05:17 -0700
commit779fcc8410757386bac35ddf4ba026943f2f24f3 (patch)
tree19053823e27b5a63926adf16474adc859472edf1 /drivers/staging/skein/skein_api.c
parenta8a211c481f806c20d56ddb7b0f8533813e936d0 (diff)
staging: skein: Remove useless initialisation
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>
Diffstat (limited to 'drivers/staging/skein/skein_api.c')
-rw-r--r--drivers/staging/skein/skein_api.c2
1 files changed, 1 insertions, 1 deletions
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