Skip to content

Commit

Permalink
app/procinfo: remove useless memset
Browse files Browse the repository at this point in the history
[ upstream commit c923be8 ]

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: fe77360 ("app/procinfo: add --show-crypto")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
Ferruh Yigit authored and bluca committed Feb 2, 2021
1 parent 02cd8d2 commit c5528cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/proc-info/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")"
Expand Down

0 comments on commit c5528cd

Please sign in to comment.