From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E38E3567F for ; Wed, 19 Apr 2017 19:32:21 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 19 Apr 2017 10:32:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,222,1488873600"; d="scan'208";a="251112039" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga004.fm.intel.com with ESMTP; 19 Apr 2017 10:32:19 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.239]) by IRSMSX152.ger.corp.intel.com ([169.254.6.231]) with mapi id 14.03.0319.002; Wed, 19 Apr 2017 18:32:18 +0100 From: "De Lara Guarch, Pablo" To: "akhil.goyal@nxp.com" , "dev@dpdk.org" CC: "Doherty, Declan" , "Mcnamara, John" , "hemant.agrawal@nxp.com" Thread-Topic: [dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec poll mode driver Thread-Index: AQHSuSMN4AThYhXakkqvNlwa5TQnVKHM8rPw Date: Wed, 19 Apr 2017 17:32:17 +0000 Message-ID: References: <20170410123108.26305-1-akhil.goyal@nxp.com> <1492616268-6307-1-git-send-email-akhil.goyal@nxp.com> <1492616268-6307-3-git-send-email-akhil.goyal@nxp.com> In-Reply-To: <1492616268-6307-3-git-send-email-akhil.goyal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWE4ZjdjM2YtMDdiNS00NDU4LWExZjUtNjY0N2I4YjVmODRhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlVBTWliY0tFQ1h6dXRhQUhRSUxGVU5URVI4Rlwvb3pLS2R3eVVHeEh6SXZVPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec poll mode driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 17:32:22 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of > akhil.goyal@nxp.com > Sent: Wednesday, April 19, 2017 4:38 PM > To: dev@dpdk.org > Cc: Doherty, Declan; Mcnamara, John; hemant.agrawal@nxp.com > Subject: [dpdk-dev] [PATCH v8 02/13] crypto/dpaa2_sec: add dpaa2 sec > poll mode driver >=20 > From: Akhil Goyal >=20 > Signed-off-by: Hemant Agrawal > Signed-off-by: Akhil Goyal > --- > 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 =3D=3D NULL) > + return -EINVAL; You can remove this, as dev->data->name is not a char[32], so it cannot be = NULL.