From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Roullit Subject: [PATCH] vhost: remove unneeded variable assignment Date: Tue, 24 Jan 2017 21:31:29 +0100 Message-ID: <20170124203129.2850-1-emmanuel.roullit@gmail.com> Cc: dev@dpdk.org To: huawei.xie@intel.com, yuanhan.liu@linux.intel.com Return-path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 33A60201 for ; Tue, 24 Jan 2017 21:31:39 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id r144so37412274wme.0 for ; Tue, 24 Jan 2017 12:31:39 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Found with clang static analysis: lib/librte_vhost/vhost_user.c:996:3: warning: Value stored to 'ret' is never read ret = vhost_user_get_vring_base(dev, &msg.payload.state); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 73c8f9f69c6c ("vhost: introduce reply ack feature") Signed-off-by: Emmanuel Roullit --- lib/librte_vhost/vhost_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 7343a00a1..3391d5ea5 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -995,7 +995,7 @@ vhost_user_msg_handler(int vid, int fd) break; case VHOST_USER_GET_VRING_BASE: - ret = vhost_user_get_vring_base(dev, &msg.payload.state); + vhost_user_get_vring_base(dev, &msg.payload.state); msg.size = sizeof(msg.payload.state); send_vhost_message(fd, &msg); break; -- 2.11.0