login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
24
Re: [PATCH 14/30] net: Kill some unneeded allocation return value casts in libertas
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dan Williams
Subject:
Re: [PATCH 14/30] net: Kill some unneeded allocation return value casts in libertas
Date: Friday, August 24, 2007 - 8:50 am
On Fri, 2007-08-24 at 02:03 +0200, Jesper Juhl wrote:
quoted text
> kmalloc() and friends return void*, no need to cast it.
Applied to libertas-2.6 'for-linville' branch, thanks. Dan
quoted text
> Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> > --- > drivers/net/wireless/libertas/debugfs.c | 2 +- > drivers/net/wireless/libertas/ethtool.c | 3 +-- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c > index 715cbda..6ade63e 100644 > --- a/drivers/net/wireless/libertas/debugfs.c > +++ b/drivers/net/wireless/libertas/debugfs.c > @@ -1839,7 +1839,7 @@ static ssize_t wlan_debugfs_write(struct file *f, const char __user *buf, > char *p2; > struct debug_data *d = (struct debug_data *)f->private_data; > > - pdata = (char *)kmalloc(cnt, GFP_KERNEL); > + pdata = kmalloc(cnt, GFP_KERNEL); > if (pdata == NULL) > return 0; > > diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c > index 96f1974..7dad493 100644 > --- a/drivers/net/wireless/libertas/ethtool.c > +++ b/drivers/net/wireless/libertas/ethtool.c > @@ -60,8 +60,7 @@ static int libertas_ethtool_get_eeprom(struct net_device *dev, > > // mutex_lock(&priv->mutex); > > - adapter->prdeeprom = > - (char *)kmalloc(eeprom->len+sizeof(regctrl), GFP_KERNEL); > + adapter->prdeeprom = kmalloc(eeprom->len+sizeof(regctrl), GFP_KERNEL); > if (!adapter->prdeeprom) > return -ENOMEM; > memcpy(adapter->prdeeprom, ®ctrl, sizeof(regctrl));
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/30] Remove unneeded casts of [kv][mzc]alloc() ret ...
, Jesper Juhl
, (Thu Aug 23, 4:35 pm)
[PATCH 01/30] ia64: Remove unnecessary cast of allocation ...
, Jesper Juhl
, (Thu Aug 23, 4:40 pm)
[PATCH 02/30] cris: Remove unnecessary cast of allocation ...
, Jesper Juhl
, (Thu Aug 23, 4:42 pm)
[PATCH 03/30] um: Don't unnecessarily cast allocation retu ...
, Jesper Juhl
, (Thu Aug 23, 4:43 pm)
[PATCH 04/30] powerpc: Don't cast kmalloc return value in ...
, Jesper Juhl
, (Thu Aug 23, 4:45 pm)
[PATCH 05/30] atm: No need to cast vmalloc() return value
, Jesper Juhl
, (Thu Aug 23, 4:46 pm)
[PATCH 06/30] i2o: No need to cast kmalloc() return value ...
, Jesper Juhl
, (Thu Aug 23, 4:48 pm)
[PATCH 07/30] mtd: Get rid of pointless cast of kzalloc() ...
, Jesper Juhl
, (Thu Aug 23, 4:50 pm)
[PATCH 08/30] mtd: Avoid a pointless kmalloc() return valu ...
, Jesper Juhl
, (Thu Aug 23, 4:51 pm)
[PATCH 09/30] mtd: Don't cast kmalloc() return value in dr ...
, Jesper Juhl
, (Thu Aug 23, 4:52 pm)
[PATCH 10/30] irda: Do not do pointless kmalloc return val ...
, Jesper Juhl
, (Thu Aug 23, 4:54 pm)
[PATCH 14/30] net: Kill some unneeded allocation return va ...
, Jesper Juhl
, (Thu Aug 23, 5:03 pm)
[PATCH 16/30] net: Avoid pointless allocation casts in BSD ...
, Jesper Juhl
, (Thu Aug 23, 5:06 pm)
[PATCH 17/30] isdn: Get rid of some pointless allocation c ...
, Jesper Juhl
, (Thu Aug 23, 5:09 pm)
[PATCH 18/30] isdn: eicon - get rid of a pointless vmalloc ...
, Jesper Juhl
, (Thu Aug 23, 5:11 pm)
[PATCH 19/30] scsi: Remove explicit casts of [kv]alloc ret ...
, Jesper Juhl
, (Thu Aug 23, 5:12 pm)
[PATCH 20/30] scsi: In the Advansys driver, do not cast al ...
, Jesper Juhl
, (Thu Aug 23, 5:16 pm)
[PATCH 21/30] oss: Remove unneeded vmalloc() return value ...
, Jesper Juhl
, (Thu Aug 23, 5:18 pm)
[PATCH 22/30] ivtv: kzalloc() returns void pointer, no nee ...
, Jesper Juhl
, (Thu Aug 23, 5:20 pm)
[PATCH 23/30] video: Remove pointless kmalloc() return val ...
, Jesper Juhl
, (Thu Aug 23, 5:22 pm)
Re: [PATCH 03/30] um: Don't unnecessarily cast allocation ...
, Jeff Dike
, (Thu Aug 23, 5:22 pm)
[PATCH 24/30] dvb: remove some unneeded vmalloc() return v ...
, Jesper Juhl
, (Thu Aug 23, 5:25 pm)
[PATCH 25/30] tty: dont needlessly cast kmalloc() return value
, Jesper Juhl
, (Thu Aug 23, 5:28 pm)
[PATCH 26/30] md: vmalloc() returns void pointer so we don ...
, Jesper Juhl
, (Thu Aug 23, 5:30 pm)
[PATCH 27/30] usb: avoid redundant cast of kmalloc() retur ...
, Jesper Juhl
, (Thu Aug 23, 5:35 pm)
[PATCH 28/30] jfs: avoid pointless casts of kmalloc() retu ...
, Jesper Juhl
, (Thu Aug 23, 5:36 pm)
Re: [PATCH 04/30] powerpc: Don't cast kmalloc return value ...
, Joachim Fenkes
, (Thu Aug 23, 5:37 pm)
[PATCH 29/30] mm: No need to cast vmalloc() return value i ...
, Jesper Juhl
, (Thu Aug 23, 5:39 pm)
[PATCH 30/30] emu10k1: There's no need to cast vmalloc() r ...
, Jesper Juhl
, (Thu Aug 23, 5:41 pm)
Re: [PATCH 0/30] Remove unneeded casts of [kv][mzc]alloc() ...
, Jesper Juhl
, (Thu Aug 23, 5:53 pm)
Re: [PATCH 20/30] scsi: In the Advansys driver, do not cas ...
, Matthew Wilcox
, (Thu Aug 23, 7:03 pm)
Re: [PATCH 28/30] jfs: avoid pointless casts of kmalloc() ...
, Dave Kleikamp
, (Thu Aug 23, 9:19 pm)
Re: [PATCH 18/30] isdn: eicon - get rid of a pointless vma ...
, Armin Schindler
, (Thu Aug 23, 11:47 pm)
Re: [PATCH 19/30] scsi: Remove explicit casts of [kv]alloc ...
, Rolf Eike Beer
, (Fri Aug 24, 12:04 am)
Re: [PATCH 22/30] ivtv: kzalloc() returns void pointer, no ...
, Hans Verkuil
, (Fri Aug 24, 1:32 am)
Re: [PATCH 22/30] ivtv: kzalloc() returns void pointer, no ...
, Jesper Juhl
, (Fri Aug 24, 1:44 am)
Re: [PATCH 19/30] scsi: Remove explicit casts of [kv]alloc ...
, Jesper Juhl
, (Fri Aug 24, 1:46 am)
Re: [PATCH 28/30] jfs: avoid pointless casts of kmalloc() ...
, Jesper Juhl
, (Fri Aug 24, 1:48 am)
Re: [PATCH 20/30] scsi: In the Advansys driver, do not cas ...
, Jesper Juhl
, (Fri Aug 24, 2:00 am)
Re: [PATCH 17/30] isdn: Get rid of some pointless allocati ...
, Karsten Keil
, (Fri Aug 24, 2:23 am)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Denys Vlasenko
, (Fri Aug 24, 3:41 am)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Robert P. J. Day
, (Fri Aug 24, 3:43 am)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jesper Juhl
, (Fri Aug 24, 3:48 am)
Re: [PATCH 14/30] net: Kill some unneeded allocation retur ...
, Dan Williams
, (Fri Aug 24, 8:50 am)
patch usb-avoid-redundant-cast-of-kmalloc-return-value-in- ...
, gregkh
, (Fri Aug 24, 9:43 pm)
Re: [PATCH 10/30] irda: Do not do pointless kmalloc return ...
, David Miller
, (Fri Aug 24, 11:23 pm)
Re: [PATCH 16/30] net: Avoid pointless allocation casts in ...
, David Miller
, (Fri Aug 24, 11:25 pm)
Re: [PATCH 17/30] isdn: Get rid of some pointless allocati ...
, David Miller
, (Fri Aug 24, 11:25 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jesper Juhl
, (Sat Aug 25, 3:27 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Robert P. J. Day
, (Sat Aug 25, 4:59 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Robert P. J. Day
, (Sat Aug 25, 5:23 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jesper Juhl
, (Sat Aug 25, 5:28 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jesper Juhl
, (Sat Aug 25, 5:36 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Kyle Moffett
, (Sat Aug 25, 6:52 pm)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Denys Vlasenko
, (Sun Aug 26, 7:28 am)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jan Engelhardt
, (Sun Aug 26, 7:37 am)
Re: [PATCH 09/30] mtd: Don't cast kmalloc() return value i ...
, Jesper Juhl
, (Sun Aug 26, 3:10 pm)
Re: [PATCH 30/30] emu10k1: There's no need to cast vmalloc ...
, Takashi Iwai
, (Tue Aug 28, 6:22 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate