[OPW,kernel,2/3] Staging: iio: fix sizeof *ring should be sizeof(*ring)
diff mbox

Message ID 1381062926-7629-2-git-send-email-ebru.akagunduz@gmail.com
State Not Applicable
Headers show

Commit Message

Ebru Akagündüz Oct. 6, 2013, 12:35 p.m. UTC
Fix checkpatch.pl issues with sizeof *ring should be sizeof(*ring) in sca3000_ring.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/iio/accel/sca3000_ring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Josh Triplett Oct. 6, 2013, 9:24 p.m. UTC | #1
On Sun, Oct 06, 2013 at 03:35:25PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with sizeof *ring should be sizeof(*ring) in sca3000_ring.c

This commit message needs word-wrapping.

> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
> ---
>  drivers/staging/iio/accel/sca3000_ring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
> index 393100b..46c843d 100644
> --- a/drivers/staging/iio/accel/sca3000_ring.c
> +++ b/drivers/staging/iio/accel/sca3000_ring.c
> @@ -252,7 +252,7 @@ static struct iio_buffer *sca3000_rb_allocate(struct iio_dev *indio_dev)
>  	struct iio_buffer *buf;
>  	struct iio_hw_buffer *ring;
>  
> -	ring = kzalloc(sizeof *ring, GFP_KERNEL);
> +	ring = kzalloc(sizeof(*ring), GFP_KERNEL);
>  	if (!ring)
>  		return NULL;
>  
> -- 
> 1.8.1.2
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Ebru Akagündüz Oct. 8, 2013, 3:05 p.m. UTC | #2
I'll fix commit message and resend this patch.

Patch
diff mbox

diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
index 393100b..46c843d 100644
--- a/drivers/staging/iio/accel/sca3000_ring.c
+++ b/drivers/staging/iio/accel/sca3000_ring.c
@@ -252,7 +252,7 @@  static struct iio_buffer *sca3000_rb_allocate(struct iio_dev *indio_dev)
 	struct iio_buffer *buf;
 	struct iio_hw_buffer *ring;
 
-	ring = kzalloc(sizeof *ring, GFP_KERNEL);
+	ring = kzalloc(sizeof(*ring), GFP_KERNEL);
 	if (!ring)
 		return NULL;