mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: anish <anish198519851985@gmail.com>
To: gregkh@suse.de, jic23@cam.ac.uk, lucas.demarchi@profusion.mobi,
	manuel.stahl@iis.fraunhofer.de, arnd@arndb.de
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] staging: iio added missing "()" in kmalloc
Date: Tue, 07 Jun 2011 00:37:45 +0530	[thread overview]
Message-ID: <1307387265.4327.13.camel@anish-desktop> (raw)

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






             reply	other threads:[~2011-06-06 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06 19:07 anish [this message]
2011-06-06 19:42 ` Arnaud Lacombe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307387265.4327.13.camel@anish-desktop \
    --to=anish198519851985@gmail.com \
    --cc=arnd@arndb.de \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=jic23@cam.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucas.demarchi@profusion.mobi \
    --cc=manuel.stahl@iis.fraunhofer.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®