From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 955BDA04DD for ; Wed, 18 Nov 2020 15:11:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6AB33C8F8; Wed, 18 Nov 2020 15:11:00 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 71DFEC902 for ; Wed, 18 Nov 2020 15:10:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605708655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pPwlOqBon831hahaFCkTEKrKkdr/6b3iqtPwO/Xxyrs=; b=iirPR+7vfiuI1StocXK9YVm3cbbjWALs6YwuEkscIZDqf8kHcz0QJulGUMnBObX9eE25WF c9L+3etm+KEwxtkZIBIUds/rZHKyyajwtP3sumZIJbagA3JS1Jcy0oBNnaghAjYvpq+POF S+NfSvZ/ojMAU7hAlOa2tZ6HLFDoCfM= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-481-I31HnMUdPguy1Xgiux-8Xw-1; Wed, 18 Nov 2020 09:10:54 -0500 X-MC-Unique: I31HnMUdPguy1Xgiux-8Xw-1 Received: by mail-vk1-f200.google.com with SMTP id j129so753848vkb.15 for ; Wed, 18 Nov 2020 06:10:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pPwlOqBon831hahaFCkTEKrKkdr/6b3iqtPwO/Xxyrs=; b=LnjB64Mho0dzzeyoE+n6HMgizeYq3zOycOwMXq78B4yn78Nar5eXl5dfERiOw3Nb4Q BTSFrVEQZCxyYNVsFqjFr+k0h1FEzglfsfL0tNqbl/w718HIWvQGzmTcsa28/9G8f4cI /Om4pfGqhZIcGQOJ7TpMLNAjkQrRPNYyTJBGiMAPPgNNESUwv6dkW+54HDTgh9n7y9Kv j9i3X9iEr1q8SqSe1w9RBWEfUETQv8PeyWOgomW0h5jTP0ShvRe/KAvIuzl9kl+ZfEf7 xoFM+zP4l6lf2ZesUTWAt8qZ5Uqhqr4R3AQ7FBPT/AS9/+XpuRffYiWE8z6ZzF4Dj45Z LVKA== X-Gm-Message-State: AOAM533UWat8xzkvCV7QdZsoRaTtYCAJUN18VmVenTT8gGUoOTw9dopB 64IlBa+VIWTCc66EzP6g12At3oMLh1Sg3elz9ymWKdP1hx454EeinQctcIq2SYjCJSYv/Lv2neZ qhtap4mISYcFTJv3njGhuGtM= X-Received: by 2002:a1f:23d6:: with SMTP id j205mr2977290vkj.20.1605708653859; Wed, 18 Nov 2020 06:10:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5CqNqcz1MqUihaBNQJMnxdwiXqOoI31lqbwggC54EV5OgTkRL1L53IIoAuMQX6Pbw1LkNp3MId7ZtJ0GmLE8= X-Received: by 2002:a1f:23d6:: with SMTP id j205mr2977252vkj.20.1605708653497; Wed, 18 Nov 2020 06:10:53 -0800 (PST) MIME-Version: 1.0 References: <20201117171435.2303641-1-ferruh.yigit@intel.com> <20201118114525.99053-1-ferruh.yigit@intel.com> <20201118114525.99053-4-ferruh.yigit@intel.com> In-Reply-To: <20201118114525.99053-4-ferruh.yigit@intel.com> From: David Marchand Date: Wed, 18 Nov 2020 15:10:42 +0100 Message-ID: To: Ferruh Yigit Cc: Maryam Tahhan , Reshma Pattan , John McNamara , Vipin Varghese , dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH v2 3/7] app/procinfo: remove suspicious sizeof X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, Nov 18, 2020 at 12:46 PM Ferruh Yigit wrote: > > The intention with the "sizeof(0)" usage is not clear, but the 'stats' > already 'memset' by 'rte_cryptodev_stats_get()' API, removing 'memset' > in application. > > Fixes: fe773600fe3e ("app/procinfo: add --show-crypto") > Cc: stable@dpdk.org > > Signed-off-by: Ferruh Yigit > --- > app/proc-info/main.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/app/proc-info/main.c b/app/proc-info/main.c > index c11fe25af4..dc5cc92209 100644 > --- a/app/proc-info/main.c > +++ b/app/proc-info/main.c > @@ -1207,7 +1207,6 @@ show_crypto(void) > > display_crypto_feature_info(dev_info.feature_flags); > > - memset(&stats, 0, sizeof(0)); > if (rte_cryptodev_stats_get(i, &stats) == 0) { > printf("\t -- stats\n"); > printf("\t\t + enqueue count (%"PRIu64")" > -- > 2.26.2 > Reviewed-by: David Marchand -- David Marchand