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:
@@ -37,7 +37,6 @@ struct ccp_tasklet_data {
|
||||
struct ccp_cmd *cmd;
|
||||
};
|
||||
|
||||
|
||||
static struct ccp_device *ccp_dev;
|
||||
static inline struct ccp_device *ccp_get_device(void)
|
||||
{
|
||||
@@ -297,10 +296,8 @@ struct ccp_device *ccp_alloc_struct(struct device *dev)
|
||||
struct ccp_device *ccp;
|
||||
|
||||
ccp = kzalloc(sizeof(*ccp), GFP_KERNEL);
|
||||
if (ccp == NULL) {
|
||||
dev_err(dev, "unable to allocate device struct\n");
|
||||
if (!ccp)
|
||||
return NULL;
|
||||
}
|
||||
ccp->dev = dev;
|
||||
|
||||
INIT_LIST_HEAD(&ccp->cmd);
|
||||
|
Reference in New Issue
Block a user