Skip to content

Commit

Permalink
crypto: skcipher - remove redundant NULL check
Browse files Browse the repository at this point in the history
Signed-off-by: Davidlohr Bueso <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Davidlohr Bueso authored and herbertx committed Jan 29, 2011
1 parent 5efb94e commit 33c7c0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/ablkcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ int ablkcipher_walk_done(struct ablkcipher_request *req,

if (walk->iv != req->info)
memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize);
if (walk->iv_buffer)
kfree(walk->iv_buffer);
kfree(walk->iv_buffer);

return err;
}
Expand Down

0 comments on commit 33c7c0f

Please sign in to comment.