From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by dpdk.org (Postfix) with ESMTP id 8B583CF7A for ; Fri, 7 Apr 2017 19:45:08 +0200 (CEST) Received: by mail-io0-f181.google.com with SMTP id t68so20414141iof.0 for ; Fri, 07 Apr 2017 10:45:08 -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=cs7Edx2APmm27dxC6PGHYmbeQ4RyX0Hb59FPTDl513g=; b=ynY9Z5r7GAkm4gOvKNukw9ZSoUuDsYIc5HTlVXrrxHzsxW8Muzi96nJEhPSPzJSzGO LWf0StoXdGVK2W6QfOPly6OaGnZeEKWn1C7sFsus1N6PKaAwKQXPTE/RPs0aOm11M1ST vId5z0RC8S066300CK7yeup5UcYAzzobr2leG8G+qYLw2a/Do3Oiy0Biml1RO3wBS94I Gthdtnl8UP0Gys8FjvtarGnFeGMcjH9b3XiJlU4GQWXXkz5HuaKH32lT623iNm/DRDa2 U4d2f4vPNhifCdrLxEhV2LwHcAreqp1q9LVw/wv4l0A3+uiW7K8qMgetaSgR4bhtT+uV xfOg== 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=cs7Edx2APmm27dxC6PGHYmbeQ4RyX0Hb59FPTDl513g=; b=qs64OYKhO+8TimiPnz96p7K/M0XCIYSo1AZ++STODnK7HgM6RvNSYASQDSHFVZvBn5 7W0VltDsXFb/Al2eGTeT5MUoZimMXJXTq1KDIcYjWB/Y9b/6uItlCev5fS7Ov82GvBZ7 XKWWeMuxNHaj8aQRrIxCgeFFKWtVrJgdAHgtXDUkHZisTTqIKpUB0WdM9sB+eU0oiNkz 0ygGkyo3Y9tDABQ+Ld4k1BwNhHpmiIrEQWkZKdez2LP5mNdiKb1O6CNBLIGfVSpsvVNL xfpsdZWaE6cL2LuHECFf6ueI0Cmir7AyQyUWH//DJxv+VThj7qIG09WmFLYLXFw4XW8E yRnw== X-Gm-Message-State: AFeK/H3aVeq33NyjTNyYRt4aaGOnOhXAGQliWZ+xqu7qO45hBdsiC4xpu4/ygUJUuxRSDw== X-Received: by 10.107.175.5 with SMTP id y5mr44636603ioe.7.1491587107819; Fri, 07 Apr 2017 10:45:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 10:45:06 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Apr 2017 13:44:51 -0400 Message-Id: <20170407174457.4180-6-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 05/11] crypto: 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:09 -0000 Remove unnecessary casts of void * pointers to a specfic type. Signed-off-by: Stephen Hemminger --- lib/librte_cryptodev/rte_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 30fd86e49..6f5080c0c 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -254,7 +254,7 @@ static int parse_integer_arg(const char *key __rte_unused, const char *value, void *extra_args) { - int *i = (int *) extra_args; + int *i = extra_args; *i = atoi(value); if (*i < 0) { @@ -1383,7 +1383,7 @@ rte_cryptodev_sym_session_create(uint8_t dev_id, return NULL; } - sess = (struct rte_cryptodev_sym_session *)_sess; + sess = _sess; RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->session_configure, NULL); if (dev->dev_ops->session_configure(dev, xform, sess->_private) == -- 2.11.0