app/crypto-perf: fix size of expression
authorJacek Piasecki <jacekx.piasecki@intel.com>
Fri, 10 Feb 2017 13:26:15 +0000 (14:26 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 10 Feb 2017 15:06:04 +0000 (16:06 +0100)
commit7fb95c36028a8040b779e99eb87c231b086a0b2e
treef00215742bc9394bf5a8739f4d4deebb8f7f4080
parent0620ebfa233f9818b6f627c75f49d8474f36b6b6
app/crypto-perf: fix size of expression

This commit fixes problem of passing a pointer to sizeof() function.
Now the size of enabled_cdevs structure is passed by RTE_CRYPTO_MAX_DEVS.

Coverity issue: 141068
Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Jacek Piasecki <jacekx.piasecki@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/main.c