crypto: ccp - Make ccp_dev_suspend and ccp_dev_resume void functions
authorTian Tao <tiantao6@hisilicon.com>
Fri, 16 Apr 2021 01:06:42 +0000 (09:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Apr 2021 07:31:31 +0000 (17:31 +1000)
commit5d17c414e1029d245d535d10c6ead04dc2f65e15
tree71ece572f6316ce338e749e7567e4ec71ae535d1
parentb2d17df35ea5ff9b7c003e5060bb79edd6d4c9c5
crypto: ccp - Make ccp_dev_suspend and ccp_dev_resume void functions

Since ccp_dev_suspend() and ccp_dev_resume() only return 0 which causes
ret to equal 0 in sp_suspend and sp_resume, making the if condition
impossible to use. it might be a more appropriate fix to have these be
void functions and eliminate the if condition in sp_suspend() and
sp_resume().

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/sp-dev.c
drivers/crypto/ccp/sp-dev.h