* [PATCH 11/18] driver: s390: net: remove cast for kzalloc return value
[not found] <513EB23D.7020303@cn.fujitsu.com>
@ 2013-03-12 5:22 ` Zhang Yanfei
2013-03-12 7:25 ` Heiko Carstens
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Yanfei @ 2013-03-12 5:22 UTC (permalink / raw)
To: Ursula Braun, Frank Blaschka, Martin Schwidefsky, Heiko Carstens,
Andrew Morton
Cc: linux390, linux-s390, linux-kernel@vger.kernel.org
remove cast for kzalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Ursula Braun <ursula.braun@de.ibm.com>
Cc: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux390@de.ibm.com
Cc: linux-s390@vger.kernel.org
---
drivers/s390/net/qeth_core_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 0d8cdff..754a54f 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -316,7 +316,7 @@ static inline int qeth_alloc_cq(struct qeth_card *card)
card->qdio.no_in_queues = 2;
- card->qdio.out_bufstates = (struct qdio_outbuf_state *)
+ card->qdio.out_bufstates =
kzalloc(card->qdio.no_out_queues *
QDIO_MAX_BUFFERS_PER_Q *
sizeof(struct qdio_outbuf_state), GFP_KERNEL);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 11/18] driver: s390: net: remove cast for kzalloc return value
2013-03-12 5:22 ` [PATCH 11/18] driver: s390: net: remove cast for kzalloc return value Zhang Yanfei
@ 2013-03-12 7:25 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2013-03-12 7:25 UTC (permalink / raw)
To: Zhang Yanfei
Cc: Ursula Braun, Frank Blaschka, Martin Schwidefsky, Andrew Morton,
linux390, linux-s390, linux-kernel@vger.kernel.org
On Tue, Mar 12, 2013 at 01:22:40PM +0800, Zhang Yanfei wrote:
> remove cast for kzalloc return value.
>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
> drivers/s390/net/qeth_core_main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
> index 0d8cdff..754a54f 100644
> --- a/drivers/s390/net/qeth_core_main.c
> +++ b/drivers/s390/net/qeth_core_main.c
> @@ -316,7 +316,7 @@ static inline int qeth_alloc_cq(struct qeth_card *card)
>
> card->qdio.no_in_queues = 2;
>
> - card->qdio.out_bufstates = (struct qdio_outbuf_state *)
> + card->qdio.out_bufstates =
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-12 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <513EB23D.7020303@cn.fujitsu.com>
2013-03-12 5:22 ` [PATCH 11/18] driver: s390: net: remove cast for kzalloc return value Zhang Yanfei
2013-03-12 7:25 ` Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox