]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: nx - use common code for both NX decompress success cases
authorDan Streetman <ddstreet@ieee.org>
Wed, 22 Jul 2015 18:26:35 +0000 (14:26 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jul 2015 10:14:31 +0000 (18:14 +0800)
commiteec7e81490677a83282e474a18056a39c947da0d
treec7ab438836aa9ca7a2f058060592879d72fd5d83
parent889c96376435302a28e779d08661ac1ce9db53da
crypto: nx - use common code for both NX decompress success cases

Replace the duplicated finishing code (set destination buffer length and
set return code to 0) in the case of decompressing a buffer with no header
with a goto to the success case of decompressing a buffer with a header.

This is a trivial change that allows both success cases to use common code,
and includes the pr_debug() msg in both cases as well.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-crypto.c