[dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec poll mode driver
De Lara Guarch, Pablo
pablo.de.lara.guarch at intel.com
Wed Apr 19 19:32:17 CEST 2017
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of
> akhil.goyal at nxp.com
> Sent: Wednesday, April 19, 2017 4:38 PM
> To: dev at dpdk.org
> Cc: Doherty, Declan; Mcnamara, John; hemant.agrawal at nxp.com
> Subject: [dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec
> poll mode driver
>
> From: Akhil Goyal <akhil.goyal at nxp.com>
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
> ---
> diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
> b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
> new file mode 100644
> index 0000000..378df4a
> --- /dev/null
> +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
> @@ -0,0 +1,194 @@
...
> +static int
> +dpaa2_sec_uninit(__attribute__((unused))
> + const struct rte_cryptodev_driver *crypto_drv,
> + struct rte_cryptodev *dev)
> +{
> + if (dev->data->name == NULL)
> + return -EINVAL;
You can remove this, as dev->data->name is not a char[32], so it cannot be NULL.
More information about the dev
mailing list