From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by dpdk.org (Postfix) with ESMTP id 95448D00F for ; Fri, 7 Apr 2017 19:45:13 +0200 (CEST) Received: by mail-it0-f47.google.com with SMTP id y18so46691289itc.1 for ; Fri, 07 Apr 2017 10:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EJnwhXlSzv/ldy2ULlZXtXTFh4l6/vVUXAHOoxCRh1k=; b=ZAN6ZFFQgBiPPgYypFN+CU3aBgrPU3Nr0i83W+26LLIeTlKTiro4OJpvkFRkOIPHpx 5Hgd2qROjZpVT5sqw24knILZM4hZdVyGVRm5kJfBQ6fWLh8dTp7665GxFzq+C+10vloK 25nZQZ5pPi5xucLkuBkBnl4h/6nA1Q+BviOvcPn1aKxG0N29+Tfi+FCi3FGQCwbt9TYq nMle/fSfWps1AaDxAESCMR/0+p3PdPR47ysaLrG050SAjX9dLsHsjrhuOF3lkPWYFdXe miy2v479GZY9BPSgkU1EDV/0OEuviJJQC8IIEJwdjQLVzHA62J+ZmEw5arV3RoXyuhJJ cJ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EJnwhXlSzv/ldy2ULlZXtXTFh4l6/vVUXAHOoxCRh1k=; b=VAARa2NCNBGGuQud8lgdV9ZYUaANyOAcj+n17SO/duD2LeUbo5Rqo1vjn/gq5DBkJa FKX84dE7F4BDXqp/Tdp1J/j1zdtg+f1IFahHODOmh579ibxQFyA0L7abkx5L8Q2jkms8 x4Cqlt5HRsTlOu7UvxALYgRZGJ4f8J6j5exoRlQd5/2Zc338iG/ZaO4zoHRAhT4SFKCU TlgyB9+sq6jVx0Qy3wUuy4F5ug2jUJH91EUMEOn2tMh1WGNGp5m8sAbkGkB7q8/1FIND x+tz48jGTW+CjbQcPFK2Zw/ewTl4YMnUx4lSpFDKq3aW917ubnjR2Yi5c3UlmGwFQfNb yluw== X-Gm-Message-State: AN3rC/7hW+etL2Zw4VdGIIofwtbBrbrV5cLpNc8ORNff5hgP466vgghn Hle0xzPs5a9JLA== X-Received: by 10.36.22.85 with SMTP id a82mr610348ita.83.1491587113057; Fri, 07 Apr 2017 10:45:13 -0700 (PDT) Received: from plumbers-lap.home.lan ([66.171.166.114]) by smtp.gmail.com with ESMTPSA id s40sm4649675ite.18.2017.04.07.10.45.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 10:45:12 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Apr 2017 13:44:55 -0400 Message-Id: <20170407174457.4180-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170407174457.4180-1-stephen@networkplumber.org> References: <20170407174457.4180-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 09/11] ether: remove unnecessary cast of void pointer X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 17:45:14 -0000 Remove unnecessary casts of void * pointers to a specfic type. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 4e1e6dc17..fa6ae4412 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -2527,7 +2527,7 @@ _rte_eth_dev_callback_process(struct rte_eth_dev *dev, dev_cb = *cb_lst; cb_lst->active = 1; if (cb_arg != NULL) - dev_cb.cb_arg = (void *) cb_arg; + dev_cb.cb_arg = cb_arg; rte_spinlock_unlock(&rte_eth_dev_cb_lock); dev_cb.cb_fn(dev->data->port_id, dev_cb.event, -- 2.11.0