OSDN Git Service

crypto: ccp - return NULL instead of 0
authorpjambhlekar <pushkar.iit@gmail.com>
Wed, 3 May 2017 04:02:09 +0000 (09:32 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:11:47 +0000 (14:11 +0800)
commit9d1fb19668207b66bc54f8e10fa91a2fcff061e4
tree904cc23baed97a9298d651024df31f7319bcc1b6
parent3cdbe346ed3f380eae1cb3e9febfe703e7d8a7b0
crypto: ccp - return NULL instead of 0

This change is to handle sparse warning. Return type of function is a pointer to the structure and
it returns 0. Instead it should return NULL.

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-platform.c