crypto: qat - fix simple_return.cocci warnings
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 12 Aug 2015 04:50:17 +0000 (12:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Aug 2015 07:13:28 +0000 (15:13 +0800)
commit8669f34e122bad56e4d3ecde5f4720c40261bf4c
treec1a1dd736a614073cfd1ac453562d85fae475f78
parent18be4ebe1f6ba8f5c329a997c2b60c8bba1cf800
crypto: qat - fix simple_return.cocci warnings

drivers/crypto/qat/qat_common/adf_sriov.c:258:1-4: WARNING: end returns can be simpified and declaration on line 212 can be dropped

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_sriov.c