From: Ebru Akagunduz Date: Tue, 8 Oct 2013 15:08:17 +0000 (+0300) Subject: Staging: iio: fix sizeof *ring should be sizeof(*ring) X-Git-Tag: MMI-PSA29.97-13-9~13364^2~407 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c92cb53d98972da3d79f7443b6304ad6ed33dbdc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: iio: fix sizeof *ring should be sizeof(*ring) Fix checkpatch.pl issues with sizeof *ring should be sizeof(*ring) in sca3000_ring.c Signed-off-by: Ebru Akagunduz Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 0f2ee3373d9a..db44240186e0 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;