crypto: crct10dif - Use PTR_RET
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Jun 2013 08:27:51 +0000 (16:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Jun 2013 08:27:51 +0000 (16:27 +0800)
commit67822649d7305caf3dd50ed46c27b99c94eff996
treee12f15bf5e8ebad64f33df36ac8a6a8f95f811e0
parentbbb85b25688fcdc70b895711870c23de7b12721b
crypto: crct10dif - Use PTR_RET

lib/crc-t10dif.c:42:1-3: WARNING: PTR_RET can be used

 Use PTR_RET rather than if(IS_ERR(...)) + PTR_ERR

Generated by: coccinelle/api/ptr_ret.cocci

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crc-t10dif.c