From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 15/21] drivers/s390: Remove unnecessary kmalloc casts
Date: Mon, 31 May 2010 20:23:17 -0700 [thread overview]
Message-ID: <6ea4f7b0d1e18e54856e8bbefd8b7eeb9d5fa068.1275360951.git.joe@perches.com> (raw)
In-Reply-To: <cover.1275360951.git.joe@perches.com>
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/s390/block/dasd_devmap.c | 3 +--
drivers/s390/char/con3215.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
index 34d51dd..8c962dc 100644
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -409,8 +409,7 @@ dasd_add_busid(const char *bus_id, int features)
struct dasd_devmap *devmap, *new, *tmp;
int hash;
- new = (struct dasd_devmap *)
- kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
+ new = kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
if (!new)
return ERR_PTR(-ENOMEM);
spin_lock(&dasd_devmap_lock);
diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c
index 59ec073..6752c42 100644
--- a/drivers/s390/char/con3215.c
+++ b/drivers/s390/char/con3215.c
@@ -888,8 +888,8 @@ static int __init con3215_init(void)
if (IS_ERR(cdev))
return -ENODEV;
- raw3215[0] = raw = (struct raw3215_info *)
- kzalloc(sizeof(struct raw3215_info), GFP_KERNEL | GFP_DMA);
+ raw3215[0] = raw = kzalloc(sizeof(struct raw3215_info),
+ GFP_KERNEL | GFP_DMA);
raw->buffer = kzalloc(RAW3215_BUFFER_SIZE, GFP_KERNEL | GFP_DMA);
raw->inbuf = kzalloc(RAW3215_INBUF_SIZE, GFP_KERNEL | GFP_DMA);
raw->cdev = cdev;
--
1.7.0.3.311.g6a6955
next prev parent reply other threads:[~2010-06-01 3:25 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 3:23 [PATCH 00/21] " Joe Perches
2010-06-01 3:23 ` [PATCH 01/21] arch/cris: " Joe Perches
2010-06-01 3:23 ` [PATCH 02/21] arch/powerpc: " Joe Perches
2010-06-01 3:23 ` [PATCH 03/21] arch/x86/kernel/tlb_uv.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 04/21] drivers/block/cciss_scsi.c: " Joe Perches
2010-06-01 15:26 ` Miller, Mike (OS Dev)
2010-06-01 3:23 ` [PATCH 05/21] drivers/gpu/drm: " Joe Perches
2010-06-01 3:23 ` [PATCH 06/21] drivers/i2c/i2c-dev.c: " Joe Perches
2010-06-01 10:57 ` Jean Delvare
2010-06-01 3:23 ` [PATCH 07/21] drivers/isdn/capi/capidrv.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 08/21] drivers/media: Remove unnecesary " Joe Perches
2010-06-01 3:23 ` [PATCH 09/21] drivers/message/i2o/i20_config.c: Remove unnecessary " Joe Perches
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 11/21] drivers/net/tulip/eeprom.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 12/21] drivers/net/vxge/vxge-main.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 13/21] drivers/net/wireless/ipw2x00/ipw2100.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Joe Perches
2010-06-01 21:02 ` Grant Grundler
2010-06-01 3:23 ` Joe Perches [this message]
2010-06-01 3:23 ` [PATCH 16/21] drivers/serial/icom.c: Remove unnecessary kmalloc casts Joe Perches
2010-06-01 3:23 ` [PATCH 17/21] drivers/usb/storage/isd200.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 18/21] fs/ufs/util.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 19/21] net/ipv4/igmp.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 20/21] net/ipv6/mcast.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 21/21] net/sctp/protocol.c: " Joe Perches
2010-06-02 17:30 ` Vlad Yasevich
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=6ea4f7b0d1e18e54856e8bbefd8b7eeb9d5fa068.1275360951.git.joe@perches.com \
--to=joe@perches.com \
--cc=linux-kernel@vger.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®