* [PATCH 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast
[not found] <cover.1275360951.git.joe@perches.com>
@ 2010-06-01 3:23 ` Joe Perches
2010-06-01 21:02 ` Grant Grundler
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw)
To: linux-kernel
Cc: Kyle McMartin, Helge Deller, James E.J. Bottomley, linux-parisc
Convert kzalloc to kcalloc
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/parisc/iosapic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c
index c768367..3e6f56c 100644
--- a/drivers/parisc/iosapic.c
+++ b/drivers/parisc/iosapic.c
@@ -891,8 +891,8 @@ void *iosapic_register(unsigned long hpa)
isi->isi_version = iosapic_rd_version(isi);
isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1;
- vip = isi->isi_vector = (struct vector_info *)
- kzalloc(sizeof(struct vector_info) * isi->isi_num_vectors, GFP_KERNEL);
+ vip = isi->isi_vector = kcalloc(isi->isi_num_vectors,
+ sizeof(struct vector_info), GFP_KERNEL);
if (vip == NULL) {
kfree(isi);
return NULL;
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast
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
0 siblings, 0 replies; 2+ messages in thread
From: Grant Grundler @ 2010-06-01 21:02 UTC (permalink / raw)
To: Joe Perches
Cc: linux-kernel, Kyle McMartin, Helge Deller, James E.J. Bottomley,
linux-parisc
On Mon, May 31, 2010 at 08:23:16PM -0700, Joe Perches wrote:
> Convert kzalloc to kcalloc
>
> Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
thanks,
grant
> ---
> drivers/parisc/iosapic.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c
> index c768367..3e6f56c 100644
> --- a/drivers/parisc/iosapic.c
> +++ b/drivers/parisc/iosapic.c
> @@ -891,8 +891,8 @@ void *iosapic_register(unsigned long hpa)
> isi->isi_version = iosapic_rd_version(isi);
> isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1;
>
> - vip = isi->isi_vector = (struct vector_info *)
> - kzalloc(sizeof(struct vector_info) * isi->isi_num_vectors, GFP_KERNEL);
> + vip = isi->isi_vector = kcalloc(isi->isi_num_vectors,
> + sizeof(struct vector_info), GFP_KERNEL);
> if (vip == NULL) {
> kfree(isi);
> return NULL;
> --
> 1.7.0.3.311.g6a6955
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-01 21:02 UTC | newest]
Thread overview: 2+ 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 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Joe Perches
2010-06-01 21:02 ` Grant Grundler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox