Commit 9d1fb196 authored by pjambhlekar's avatar pjambhlekar Committed by Herbert Xu

crypto: ccp - return NULL instead of 0

This change is to handle sparse warning. Return type of function is a pointer to the structure and
it returns 0. Instead it should return NULL.
Signed-off-by: default avatarPushkar Jambhlekar <pushkar.iit@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3cdbe346
...@@ -44,7 +44,7 @@ static struct ccp_vdata *ccp_get_of_version(struct platform_device *pdev) ...@@ -44,7 +44,7 @@ static struct ccp_vdata *ccp_get_of_version(struct platform_device *pdev)
if (match && match->data) if (match && match->data)
return (struct ccp_vdata *)match->data; return (struct ccp_vdata *)match->data;
#endif #endif
return 0; return NULL;
} }
static struct ccp_vdata *ccp_get_acpi_version(struct platform_device *pdev) static struct ccp_vdata *ccp_get_acpi_version(struct platform_device *pdev)
...@@ -56,7 +56,7 @@ static struct ccp_vdata *ccp_get_acpi_version(struct platform_device *pdev) ...@@ -56,7 +56,7 @@ static struct ccp_vdata *ccp_get_acpi_version(struct platform_device *pdev)
if (match && match->driver_data) if (match && match->driver_data)
return (struct ccp_vdata *)match->driver_data; return (struct ccp_vdata *)match->driver_data;
#endif #endif
return 0; return NULL;
} }
static int ccp_get_irq(struct ccp_device *ccp) static int ccp_get_irq(struct ccp_device *ccp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment