diff options
Diffstat (limited to 'drivers/crypto/ccp/sp-dev.c')
| -rw-r--r-- | drivers/crypto/ccp/sp-dev.c | 12 | 
1 files changed, 2 insertions, 10 deletions
| diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c index 6284a15e5047..7eb3e4668286 100644 --- a/drivers/crypto/ccp/sp-dev.c +++ b/drivers/crypto/ccp/sp-dev.c @@ -213,12 +213,8 @@ void sp_destroy(struct sp_device *sp)  int sp_suspend(struct sp_device *sp)  { -	int ret; -  	if (sp->dev_vdata->ccp_vdata) { -		ret = ccp_dev_suspend(sp); -		if (ret) -			return ret; +		ccp_dev_suspend(sp);  	}  	return 0; @@ -226,12 +222,8 @@ int sp_suspend(struct sp_device *sp)  int sp_resume(struct sp_device *sp)  { -	int ret; -  	if (sp->dev_vdata->ccp_vdata) { -		ret = ccp_dev_resume(sp); -		if (ret) -			return ret; +		ccp_dev_resume(sp);  	}  	return 0; | 
