* [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,)
@ 2011-01-12 21:21 Joe Perches
2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
2011-01-12 21:21 ` [PATCH 3/3] staging: brcm80211: " Joe Perches
0 siblings, 2 replies; 5+ messages in thread
From: Joe Perches @ 2011-01-12 21:21 UTC (permalink / raw)
To: linux-kernel; +Cc: David Airlie, dri-devel
kzalloc'd memory doesn't need a memset to 0.
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index 10ca97e..ed18932 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -248,7 +248,6 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
DRM_ERROR("Failed allocating a device private struct.\n");
return -ENOMEM;
}
- memset(dev_priv, 0, sizeof(*dev_priv));
dev_priv->dev = dev;
dev_priv->vmw_chipset = chipset;
--
1.7.3.3.398.g0b0cd.dirty
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/3] bna: Remove unnecessary memset(,0,)
2011-01-12 21:21 [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,) Joe Perches
@ 2011-01-12 21:21 ` Joe Perches
2011-01-12 22:55 ` Rasesh Mody
2011-01-12 21:21 ` [PATCH 3/3] staging: brcm80211: " Joe Perches
1 sibling, 1 reply; 5+ messages in thread
From: Joe Perches @ 2011-01-12 21:21 UTC (permalink / raw)
To: Rasesh Mody, Debashis Dutt; +Cc: netdev, linux-kernel
kzalloc'd memory doesn't need a memset to 0.
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/net/bna/bnad_ethtool.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/bna/bnad_ethtool.c b/drivers/net/bna/bnad_ethtool.c
index 99be5ae..142d604 100644
--- a/drivers/net/bna/bnad_ethtool.c
+++ b/drivers/net/bna/bnad_ethtool.c
@@ -275,7 +275,6 @@ bnad_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
if (ioc_attr) {
- memset(ioc_attr, 0, sizeof(*ioc_attr));
spin_lock_irqsave(&bnad->bna_lock, flags);
bfa_nw_ioc_get_attr(&bnad->bna.device.ioc, ioc_attr);
spin_unlock_irqrestore(&bnad->bna_lock, flags);
--
1.7.3.3.398.g0b0cd.dirty
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: [PATCH 2/3] bna: Remove unnecessary memset(,0,)
2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
@ 2011-01-12 22:55 ` Rasesh Mody
2011-01-13 3:01 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Rasesh Mody @ 2011-01-12 22:55 UTC (permalink / raw)
To: Joe Perches, Debashis Dutt; +Cc: netdev, linux-kernel
>From: Joe Perches [mailto:joe@perches.com]
>Sent: Wednesday, January 12, 2011 1:21 PM
>
>kzalloc'd memory doesn't need a memset to 0.
>
>Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Rasesh Mody <rmody@brocade.com>
>---
> drivers/net/bna/bnad_ethtool.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
>diff --git a/drivers/net/bna/bnad_ethtool.c
>b/drivers/net/bna/bnad_ethtool.c
>index 99be5ae..142d604 100644
>--- a/drivers/net/bna/bnad_ethtool.c
>+++ b/drivers/net/bna/bnad_ethtool.c
>@@ -275,7 +275,6 @@ bnad_get_drvinfo(struct net_device *netdev, struct
>ethtool_drvinfo *drvinfo)
>
> ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
> if (ioc_attr) {
>- memset(ioc_attr, 0, sizeof(*ioc_attr));
> spin_lock_irqsave(&bnad->bna_lock, flags);
> bfa_nw_ioc_get_attr(&bnad->bna.device.ioc, ioc_attr);
> spin_unlock_irqrestore(&bnad->bna_lock, flags);
>--
>1.7.3.3.398.g0b0cd.dirty
Joe,
Patch looks ok to me.
Thanks,
Rasesh
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 2/3] bna: Remove unnecessary memset(,0,)
2011-01-12 22:55 ` Rasesh Mody
@ 2011-01-13 3:01 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2011-01-13 3:01 UTC (permalink / raw)
To: rmody; +Cc: joe, ddutt, netdev, linux-kernel
From: Rasesh Mody <rmody@brocade.com>
Date: Wed, 12 Jan 2011 14:55:25 -0800
>
>>From: Joe Perches [mailto:joe@perches.com]
>>Sent: Wednesday, January 12, 2011 1:21 PM
>>
>>kzalloc'd memory doesn't need a memset to 0.
>>
>>Signed-off-by: Joe Perches <joe@perches.com>
>
> Acked-by: Rasesh Mody <rmody@brocade.com>
Applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] staging: brcm80211: Remove unnecessary memset(,0,)
2011-01-12 21:21 [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,) Joe Perches
2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
@ 2011-01-12 21:21 ` Joe Perches
1 sibling, 0 replies; 5+ messages in thread
From: Joe Perches @ 2011-01-12 21:21 UTC (permalink / raw)
To: linux-kernel
Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, Roland Vossen,
Arend van Spriel, Greg Kroah-Hartman, linux-wireless, devel
kzalloc'd memory doesn't need a memset to 0.
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
index 991463f..2af0d6a 100644
--- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
@@ -703,7 +703,6 @@ wl_run_iscan(struct wl_iscan_ctrl *iscan, struct wlc_ssid *ssid, u16 action)
params = kzalloc(params_size, GFP_KERNEL);
if (unlikely(!params))
return -ENOMEM;
- memset(params, 0, params_size);
BUG_ON(unlikely(params_size >= WLC_IOCTL_SMLEN));
wl_iscan_prep(¶ms->params, ssid);
--
1.7.3.3.398.g0b0cd.dirty
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-13 3:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-12 21:21 [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,) Joe Perches
2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
2011-01-12 22:55 ` Rasesh Mody
2011-01-13 3:01 ` David Miller
2011-01-12 21:21 ` [PATCH 3/3] staging: brcm80211: " Joe Perches
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®