commit | d9c35771d884c6d8eb57057be4bc9a74161361bc | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Wed May 23 14:32:42 2018 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu May 31 00:13:47 2018 +0800 |
tree | 678b560f5c842d9b37aa1ade9e0e669034328643 | |
parent | b2106476a8cf18318a9677ad669e63502900d907 [diff] |
crypto: caam/qi - fix warning in init_cgr() Coverity warns about an "Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)" when computing the congestion threshold value. Even though it is highly unlikely for an overflow to happen, use this as an opportunity to simplify the code. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>