* [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts
[not found] <cover.1275360951.git.joe@perches.com>
@ 2010-06-01 3:23 ` Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 11/21] drivers/net/tulip/eeprom.c: " Joe Perches
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw)
To: linux-kernel; +Cc: netdev
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/net/gianfar.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 1830f31..ab54821 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -681,8 +681,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev)
priv->rx_queue[i] = NULL;
for (i = 0; i < priv->num_tx_queues; i++) {
- priv->tx_queue[i] = (struct gfar_priv_tx_q *)kzalloc(
- sizeof (struct gfar_priv_tx_q), GFP_KERNEL);
+ priv->tx_queue[i] = kzalloc(sizeof(struct gfar_priv_tx_q),
+ GFP_KERNEL);
if (!priv->tx_queue[i]) {
err = -ENOMEM;
goto tx_alloc_failed;
@@ -694,8 +694,8 @@ static int gfar_of_init(struct of_device *ofdev, struct net_device **pdev)
}
for (i = 0; i < priv->num_rx_queues; i++) {
- priv->rx_queue[i] = (struct gfar_priv_rx_q *)kzalloc(
- sizeof (struct gfar_priv_rx_q), GFP_KERNEL);
+ priv->rx_queue[i] = kzalloc(sizeof(struct gfar_priv_rx_q),
+ GFP_KERNEL);
if (!priv->rx_queue[i]) {
err = -ENOMEM;
goto rx_alloc_failed;
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 11/21] drivers/net/tulip/eeprom.c: Remove unnecessary kmalloc casts
[not found] <cover.1275360951.git.joe@perches.com>
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts Joe Perches
@ 2010-06-01 3:23 ` Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 19/21] net/ipv4/igmp.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 20/21] net/ipv6/mcast.c: " Joe Perches
3 siblings, 1 reply; 8+ messages in thread
From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw)
To: linux-kernel; +Cc: Grant Grundler, Kyle McMartin, netdev
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/net/tulip/eeprom.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/tulip/eeprom.c b/drivers/net/tulip/eeprom.c
index 6002e65..3031ed9 100644
--- a/drivers/net/tulip/eeprom.c
+++ b/drivers/net/tulip/eeprom.c
@@ -120,8 +120,8 @@ static void __devinit tulip_build_fake_mediatable(struct tulip_private *tp)
0x00, 0x06 /* ttm bit map */
};
- tp->mtable = (struct mediatable *)
- kmalloc(sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL);
+ tp->mtable = kmalloc(sizeof(struct mediatable) +
+ sizeof(struct medialeaf), GFP_KERNEL);
if (tp->mtable == NULL)
return; /* Horrible, impossible failure. */
@@ -227,9 +227,9 @@ subsequent_board:
return;
}
- mtable = (struct mediatable *)
- kmalloc(sizeof(struct mediatable) + count*sizeof(struct medialeaf),
- GFP_KERNEL);
+ mtable = kmalloc(sizeof(struct mediatable) +
+ count * sizeof(struct medialeaf),
+ GFP_KERNEL);
if (mtable == NULL)
return; /* Horrible, impossible failure. */
last_mediatable = tp->mtable = mtable;
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 19/21] net/ipv4/igmp.c: Remove unnecessary kmalloc casts
[not found] <cover.1275360951.git.joe@perches.com>
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts Joe Perches
2010-06-01 3:23 ` [PATCH 11/21] drivers/net/tulip/eeprom.c: " Joe Perches
@ 2010-06-01 3:23 ` Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 20/21] net/ipv6/mcast.c: " Joe Perches
3 siblings, 1 reply; 8+ messages in thread
From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw)
To: linux-kernel
Cc: David S. Miller, Alexey Kuznetsov, Pekka Savola (ipv6),
James Morris, Hideaki YOSHIFUJI, Patrick McHardy, netdev
Signed-off-by: Joe Perches <joe@perches.com>
---
net/ipv4/igmp.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 5fff865..250cb5e 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -1646,8 +1646,7 @@ static int sf_setstate(struct ip_mc_list *pmc)
if (dpsf->sf_inaddr == psf->sf_inaddr)
break;
if (!dpsf) {
- dpsf = (struct ip_sf_list *)
- kmalloc(sizeof(*dpsf), GFP_ATOMIC);
+ dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
if (!dpsf)
continue;
*dpsf = *psf;
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 20/21] net/ipv6/mcast.c: Remove unnecessary kmalloc casts
[not found] <cover.1275360951.git.joe@perches.com>
` (2 preceding siblings ...)
2010-06-01 3:23 ` [PATCH 19/21] net/ipv4/igmp.c: " Joe Perches
@ 2010-06-01 3:23 ` Joe Perches
2010-06-01 7:17 ` David Miller
3 siblings, 1 reply; 8+ messages in thread
From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw)
To: linux-kernel
Cc: David S. Miller, Alexey Kuznetsov, Pekka Savola (ipv6),
James Morris, Hideaki YOSHIFUJI, Patrick McHardy, netdev
Signed-off-by: Joe Perches <joe@perches.com>
---
net/ipv6/mcast.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 59f1881..7b5fb43 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -1995,8 +1995,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc)
&psf->sf_addr))
break;
if (!dpsf) {
- dpsf = (struct ip6_sf_list *)
- kmalloc(sizeof(*dpsf), GFP_ATOMIC);
+ dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
if (!dpsf)
continue;
*dpsf = *psf;
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 19/21] net/ipv4/igmp.c: Remove unnecessary kmalloc casts
2010-06-01 3:23 ` [PATCH 19/21] net/ipv4/igmp.c: " Joe Perches
@ 2010-06-01 7:17 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2010-06-01 7:17 UTC (permalink / raw)
To: joe; +Cc: linux-kernel, kuznet, pekkas, jmorris, yoshfuji, kaber, netdev
From: Joe Perches <joe@perches.com>
Date: Mon, 31 May 2010 20:23:21 -0700
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 20/21] net/ipv6/mcast.c: Remove unnecessary kmalloc casts
2010-06-01 3:23 ` [PATCH 20/21] net/ipv6/mcast.c: " Joe Perches
@ 2010-06-01 7:17 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2010-06-01 7:17 UTC (permalink / raw)
To: joe; +Cc: linux-kernel, kuznet, pekkas, jmorris, yoshfuji, kaber, netdev
From: Joe Perches <joe@perches.com>
Date: Mon, 31 May 2010 20:23:22 -0700
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts Joe Perches
@ 2010-06-01 7:17 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2010-06-01 7:17 UTC (permalink / raw)
To: joe; +Cc: linux-kernel, netdev
From: Joe Perches <joe@perches.com>
Date: Mon, 31 May 2010 20:23:12 -0700
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 11/21] drivers/net/tulip/eeprom.c: Remove unnecessary kmalloc casts
2010-06-01 3:23 ` [PATCH 11/21] drivers/net/tulip/eeprom.c: " Joe Perches
@ 2010-06-01 7:17 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2010-06-01 7:17 UTC (permalink / raw)
To: joe; +Cc: linux-kernel, grundler, kyle, netdev
From: Joe Perches <joe@perches.com>
Date: Mon, 31 May 2010 20:23:13 -0700
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-06-01 7:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1275360951.git.joe@perches.com>
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: Remove unnecessary kmalloc casts 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 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).