crypto: ccp - Updates for checkpatch warnings/errors
Changes to address warnings and errors reported by the checkpatch script. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -33,7 +33,6 @@ static unsigned int sha_disable;
|
||||
module_param(sha_disable, uint, 0444);
|
||||
MODULE_PARM_DESC(sha_disable, "Disable use of SHA - any non-zero value");
|
||||
|
||||
|
||||
/* List heads for the supported algorithms */
|
||||
static LIST_HEAD(hash_algs);
|
||||
static LIST_HEAD(cipher_algs);
|
||||
@@ -48,6 +47,7 @@ struct ccp_crypto_queue {
|
||||
struct list_head *backlog;
|
||||
unsigned int cmd_count;
|
||||
};
|
||||
|
||||
#define CCP_CRYPTO_MAX_QLEN 100
|
||||
|
||||
static struct ccp_crypto_queue req_queue;
|
||||
@@ -77,7 +77,6 @@ struct ccp_crypto_cpu {
|
||||
int err;
|
||||
};
|
||||
|
||||
|
||||
static inline bool ccp_crypto_success(int err)
|
||||
{
|
||||
if (err && (err != -EINPROGRESS) && (err != -EBUSY))
|
||||
@@ -143,7 +142,7 @@ static void ccp_crypto_complete(void *data, int err)
|
||||
int ret;
|
||||
|
||||
if (err == -EINPROGRESS) {
|
||||
/* Only propogate the -EINPROGRESS if necessary */
|
||||
/* Only propagate the -EINPROGRESS if necessary */
|
||||
if (crypto_cmd->ret == -EBUSY) {
|
||||
crypto_cmd->ret = -EINPROGRESS;
|
||||
req->complete(req, -EINPROGRESS);
|
||||
|
Reference in New Issue
Block a user