Re: [PATCH] crypto: ccp - Make ccp_dev_suspend and ccp_dev_resume void functions

2021-04-15 Thread Tom Lendacky
On 4/15/21 1:03 AM, Tian Tao wrote: > 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 conditio

[PATCH] crypto: ccp - Make ccp_dev_suspend and ccp_dev_resume void functions

2021-04-14 Thread Tian Tao
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-o