[PATCH] Staging: android: ion: fixed a kzalloc coding style issue.

2016-05-14 Thread Shubham Bansal
Fixed a coding style issue. Issue reported by checkpatch.pl.

Signed-off-by: Shubham Bansal 
---
 drivers/staging/android/ion/ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion.c 
b/drivers/staging/android/ion/ion.c
index 8536567..2217ccb 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -184,7 +184,7 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap 
*heap,
struct scatterlist *sg;
int i, ret;
 
-   buffer = kzalloc(sizeof(struct ion_buffer), GFP_KERNEL);
+   buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
if (!buffer)
return ERR_PTR(-ENOMEM);
 
-- 
2.1.4

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: android: ion: fixed a kzalloc coding style issue.

2016-05-26 Thread Shubham Bansal
Fixed a coding style issue. Issue reported by checkpatch.pl.

Signed-off-by: Shubham Bansal 
---
 drivers/staging/android/ion/ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion.c 
b/drivers/staging/android/ion/ion.c
index 8536567..2217ccb 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -184,7 +184,7 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap 
*heap,
struct scatterlist *sg;
int i, ret;
 
-   buffer = kzalloc(sizeof(struct ion_buffer), GFP_KERNEL);
+   buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
if (!buffer)
return ERR_PTR(-ENOMEM);
 
-- 
2.1.4

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel