mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] staging: iio added missing "()" in kmalloc
@ 2011-06-06 19:07 anish
  2011-06-06 19:42 ` Arnaud Lacombe
  0 siblings, 1 reply; 2+ messages in thread
From: anish @ 2011-06-06 19:07 UTC (permalink / raw)
  To: gregkh, jic23, lucas.demarchi, manuel.stahl, arnd; +Cc: devel, linux-kernel

From: anish kumar <anish198519851985@gmail.com>

"()" was missing from kmalloc,so added it.

Signed-off-by: anish kumar <anish198519851985@gmail.com>
---
 drivers/staging/iio/industrialio-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index 3a82414..5251332 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -136,7 +136,7 @@ static irqreturn_t iio_interrupt_handler(int irq, void *_int_info)
 
 static struct iio_interrupt *iio_allocate_interrupt(void)
 {
-	struct iio_interrupt *i = kmalloc(sizeof *i, GFP_KERNEL);
+	struct iio_interrupt *i = kmalloc(sizeof(*i), GFP_KERNEL);
 	if (i) {
 		spin_lock_init(&i->ev_list_lock);
 		INIT_LIST_HEAD(&i->ev_list);
-- 
1.7.0.4






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-06 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 19:07 [PATCH 2/2] staging: iio added missing "()" in kmalloc anish
2011-06-06 19:42 ` Arnaud Lacombe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®