mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 06/12] drivers/media: Remove unnecesary kmalloc casts
Date: Mon,  7 Jun 2010 20:50:38 -0700	[thread overview]
Message-ID: <6ad759b1dd4addbbd94f045f4f05f3493f1443d4.1275968594.git.joe@perches.com> (raw)
In-Reply-To: <cover.1275968594.git.joe@perches.com>

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/media/dvb/siano/smscoreapi.c |    4 +---
 drivers/media/video/w9968cf.c        |    3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index 0c87a3c..828bcc2 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -116,9 +116,7 @@ static struct smscore_registry_entry_t *smscore_find_registry(char *devpath)
 			return entry;
 		}
 	}
-	entry = (struct smscore_registry_entry_t *)
-			kmalloc(sizeof(struct smscore_registry_entry_t),
-				GFP_KERNEL);
+	entry = kmalloc(sizeof(struct smscore_registry_entry_t), GFP_KERNEL);
 	if (entry) {
 		entry->mode = default_mode;
 		strcpy(entry->devpath, devpath);
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index d807eea..591fc6d 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -3429,8 +3429,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id)
 	else
 		return -ENODEV;
 
-	cam = (struct w9968cf_device*)
-		  kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
+	cam = kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
 	if (!cam)
 		return -ENOMEM;
 
-- 
1.7.1.244.gbdc4


  parent reply	other threads:[~2010-06-08  3:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08  3:50 [PATCH 00/12] treewide: Remove unnecessary " Joe Perches
2010-06-08  3:50 ` [PATCH 01/12] arch/cris: " Joe Perches
2010-06-08  4:44   ` David Rientjes
2010-06-08 15:21     ` Joe Perches
2010-06-14 10:59   ` Jesper Nilsson
2010-06-16 15:58     ` Jiri Kosina
2010-06-08  3:50 ` [PATCH 02/12] arch/powerpc: " Joe Perches
2010-06-09  7:20   ` [PATCH 00/12] treewide: " Milton Miller
2010-06-09  7:46     ` Joe Perches
2010-06-09 10:06     ` Pekka Enberg
2010-06-08  3:50 ` [PATCH 03/12] arch/x86/kernel/tlb_uv.c: " Joe Perches
2010-06-08  3:50 ` [PATCH 04/12] drivers/gpu/drm: " Joe Perches
2010-06-08  3:50 ` [PATCH 05/12] drivers/isdn/capi/capidrv.c: " Joe Perches
2010-06-08  3:50 ` Joe Perches [this message]
2010-06-08  3:50 ` [PATCH 07/12] drivers/message/i2o/i20_config.c: " Joe Perches
2010-06-08  3:50 ` [PATCH 08/12] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Joe Perches
2010-06-08  3:50 ` [PATCH 09/12] drivers/s390: Remove unnecessary kmalloc casts Joe Perches
2010-06-08  3:50 ` [PATCH 10/12] drivers/serial/icom.c: " Joe Perches
2010-06-08  3:50 ` [PATCH 11/12] drivers/usb/storage/isd200.c: " Joe Perches
2010-06-08  3:50 ` [PATCH 12/12] fs/ufs/util.c: " Joe Perches

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=6ad759b1dd4addbbd94f045f4f05f3493f1443d4.1275968594.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /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®