crypto: cavium - Prevent division by zero
authorJan Glauber <jglauber@cavium.com>
Mon, 9 Apr 2018 15:45:52 +0000 (17:45 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:35 +0000 (00:58 +0800)
commita40c88045506ecba8e3ae75da19e8a2c53e23a41
tree5a8938ec0845cba8131a3e89e97d8e91fb255cef
parentc782a8c43e94ba6c09e9de2d69b5e3a5840ce61c
crypto: cavium - Prevent division by zero

Avoid two potential divisions by zero when calculating average
values for the zip statistics.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Reviewed-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c