From: Zhang Yanfei Date: Mon, 22 Apr 2013 01:12:27 +0000 (+0000) Subject: qeth: remove cast for kzalloc return value X-Git-Tag: v4.0~4125^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a912f9822f532d3988784600d84478667eca1bd;p=platform%2Fkernel%2Flinux-amlogic.git qeth: remove cast for kzalloc return value remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Signed-off-by: Heiko Carstens Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 0d73a99..3a89ab7 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);