> -----Original Message-----
> From: dev [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Wednesday, April 19, 2017 4:38 PM
> To: [email protected]
> Cc: Doherty, Declan; Mcnamara, John; [email protected]
> Subject: [dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec
> poll mode driver
>
> From: Akhil Goyal <[email protected]>
>
> Signed-off-by: Hemant Agrawal <[email protected]>
> Signed-off-by: Akhil Goyal <[email protected]>
> ---
> 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.