From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40077.outbound.protection.outlook.com [40.107.4.77]) by dpdk.org (Postfix) with ESMTP id C7A1B1B6DF for ; Wed, 9 May 2018 17:09:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EvtAkEzaqWoMCym1RZcD0bwnBO31j+oJH6NJfJtR9xc=; b=CJMsVHKzxXTNkriDlqd0FL+xZMppPIyI7miXjJErEnZnVH9u7x4qJ8OUc+t/J9GeLOZupH5DxCANperEvU5L/8FXiZLB81vGrI/mFKicUGOuy4z/TNcT4E4/sP7aS9XhmFVlBXJvhV5KvdXi64U+8PTD3enOJg/CT/E2CW5Uflc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by DB6PR0402MB2774.eurprd04.prod.outlook.com (2603:10a6:4:96::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Wed, 9 May 2018 15:09:51 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: dev@dpdk.org, Shreyansh Jain Date: Wed, 9 May 2018 20:56:10 +0530 Message-Id: <20180509152610.30047-3-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509152610.30047-1-shreyansh.jain@nxp.com> References: <20180509152610.30047-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0020.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::30) To DB6PR0402MB2774.eurprd04.prod.outlook.com (2603:10a6:4:96::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0402MB2774; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2774; 3:GhdL/y/HlaO/3s9WIKCnvFkQgb1oxa5L7zmTqh9XXpYMdbSJCA3l8YQfNpIISqBVhrxLSkNKb7QM6OWDCFGzU9sFuUqeetvthRz82Gg7LWZ1ydkPRManEWSlgR6OuJCNRJ+v8MCiXOrh4phPZbbT3CLEdpD/biV8AibRBiXBJ7TZRoggiIIJgw7wjoypo1lDdWQg3anGAoYdqXFIAYfdJoh2Ag5G05wRntYnE3iJKmrPI3EWXn5N/dyx/Wgdjcmz; 25:6GV4vz8B2xMEZgPe54mc8faHRL8Arp2tzp5pvDGe7Yer10L7yaV/mIM9grfOGZLTKcgAwcieR/jCHSQgK7+DcJ13YgGZc+4KZ/vjavCmsHHRTPiV05FVv6SHNZo99ST0NGrvDqIMkNnVrLzFgj7tpYTdc86a+730EIx/VvPGz0RQso4YKXjmSom8F53I+Y3EXkJtHO985efwdaWiYzsQIt4eeTsmapVZ9qm059lN/y1/mnrI9nfKuxSFxRBHap4fo1S26K1CVuprCSts7d39xK0w6kCwFUWyxyBWH+e1l3HzML/Azzt/Tr0mLCIjYWgl6/FjJBTaUIxPKOpin5q9JA==; 31:2TGaJG09LkJe2RUWMzMvl9Oa5s7N7DTcjhE1LKzuMipIZwkeOhjWsgYxtagIaclcjyQLvVQ8EOuCYdW/hiUUCQBEMXvSc4IJ1wUkuXdHU5IO1XBqoqsRl3uacBEklDDhRUXdVbJGeIw9KYB+sZhP4Bzw1Atxf5+Y84HPQVyzIQoa2Bm4O7O9o5DLWIV0pXwogKwqirS5fErxY7KrQY4ZgvX8iuD7wLiPYyjCVe+Bgys= X-MS-TrafficTypeDiagnostic: DB6PR0402MB2774: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2774; 20:vrXlC6o7JeaMsYF7y0Cbgt42tQcGDT8o/DyM/r6ZpH6oEKLShhjSMlN2jNe4U6FxKlT+Jt+zjtoFQxxjFTPpNzLSifJlNlLoxO823GsIDCc1fPeFz+d87qeqq51kz4sM7PzJAuap7sAlZBwCqT/rwqKkd7hVj8U/TLf8a1ssEEPdz3tp1LpFs5HaWkCj6eh2h/CKbD5Lqu/b46Zp0JvqRlZ/DPlX0fFaGWUwQI3Oc7inqJ6FQ5PO7WWNBt8UMoT4ruzo6TLCQqYcENx6mS+ZxX+DD5JaP/fQ+qkxIUOkBijU8xJabINBNFh/PaIeRk38DOe5kC1DkeO18XNZxPzwJnvNanFrjQvmszlUpG4xygRFu7nqGBkVnssiuy9YCR3Q+Hvq+R+d2dAdMKmLdnZYxCy1ogM5g15hUFzH4r0KaeksyE75bhz6lPu8ehD8VipD7Nwximh6gtUPf3SEIcco1hcyRv3y5swe+GQncUV6Zyh6pVW+7s4nZS52hm+VNf0V; 4:C/Q0/32KQlXi/ya4Ovbttgrq1Co5trDJ8yIMVTCaHUFGFE6L5/1jbArn44oWhXynV5gIeEBWClLdzrtUm490a+8N44EMzFLlVz3BBb2AWfDwCWlfl1RLSyETK+StMZJY042W7DCMNErPfbIzmWLc90I+djwfz0XMQFKypnJN7yVsWMJpULii+rn49wgsFBndOg3MqaLy78piS1LcxhGbTBoqA5sFu0oT91h0cHhpGivQ60WBTSCdEv6UahL9AcUJhcOHlf7oLKmRCppjJJHA7qC99RTcAVrqqo0143WYmJ98Y9cOIMHI0VRODUMc9iic X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0402MB2774; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0402MB2774; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(366004)(376002)(396003)(199004)(189003)(5660300001)(6116002)(105586002)(97736004)(36756003)(3846002)(1076002)(25786009)(6486002)(5009440100003)(106356001)(81166006)(6916009)(8676002)(2351001)(478600001)(6666003)(50466002)(48376002)(50226002)(47776003)(7736002)(51416003)(6512007)(316002)(16586007)(8936002)(76176011)(52116002)(55236004)(16526019)(305945005)(66066001)(386003)(26005)(186003)(476003)(2361001)(446003)(956004)(2616005)(68736007)(86362001)(11346002)(44832011)(486006)(2906002)(81156014)(4326008)(53936002)(6506007)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0402MB2774; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0402MB2774; 23:x48I6THNcCrZxaeG3Xg6Kv5Dgxu2GEDAQRHvCki?= =?us-ascii?Q?xro3QL4X1WBwTnBqrtQZK3h37bNXGNYBbdNqac6o4kOxrtH3lbdTSJui04gF?= =?us-ascii?Q?HNFwyVBDP/u8oSJLy6ZYyAmB0FeJHBGYM0jf8i2f7qGz37F1jlBSgY7QhY4m?= =?us-ascii?Q?0DsvJkh68dPCbtL3c15Z3gzY0WRm+quv7bRrJyiV39F+Lav4DEOsxxOUjFK2?= =?us-ascii?Q?nzDxbiJcXw/3ivcQscR6/KWh3sjovwuw89meQh2uwo6X6z1mWmEwa54T3zO9?= =?us-ascii?Q?f5r69YzeIyltTi3MNSPCc+bRhSQoDw5g2Mh76AGK6RpXx3FHdkZ/Nkmw72Uo?= =?us-ascii?Q?db9RwfqhHMNXS5wgV3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SlYJsJgBF8ttOt/Jx3OTVktcuuErZYSsfqYql+k0f7W/6QwJTXaE3flcRSuL?= =?us-ascii?Q?K1haNPEcy1FlTPGjERAMBKDtKaHEqyiE6/OsV8tDrGb45?= X-Microsoft-Antispam-Message-Info: gyj+bAfHjPUA1ozTgdLDHt+a/ezk50VJALnLBf8O0BfbK3lEwZGD+QU1N6BxdmIcTcNfj2WWM4//pRNSwvssT2DDEghPVesQTLm5fSWQsdJp7+wdCrCJkWKUPXwmXIAMrDjQRIVQvF+slJKC91TZogVwpo67lPVWrdfr1fmpcA7z9pUVSAE/wBaiixZEdosZ X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2774; 6:zIMdFdIJc/TfQt51QTEW/72tbMtv9rw+DU/a4HrVdNREgsBPa7w8MOjXSXFD0K0e6fyzNaijcL8moqvIHcBcaI66ikJ0JeD/W0n9+PtisFWhrLZzYycWf82H8p3wQxKbC/Bx3oxMJ4EZwmHZClofuDBtyJk1wH5/pTe7/1L90nMN2XApec6FwPXcnAH7GUjr7bekvanaiM2MIEuP19GgqJGjp1kicYWl2Xp4Ec9PM9PqxNn+7k50DedgCWVVqKMArxh86SsYeOJSVBAySXtB1nwnNQDvIJBLJe1nL0WE3wUQJTOVHj24gFOaFdWbEwRqux1d2l+lGdXSNituuUvrJymp9Gd7VSZdEyfZrsLUej6RKtcxwMqAUCT2HlocuiK7V07Bgam5D7K7m0uEgh/TbF6KmXtGQYXmeByXHylPs0iMnlZw7y/ctIU4+kyw363Y6PJmEgGV4maRzxNOFFlncA==; 5:ruN4DNlngnE3kvRZ8gB7phalXZL7ZAsEj/FMa92YjhCcJbpWoy4Yj6wkTRA40AO+KtEcUgJEU2bx493zgQ9EdbeA06ZNWtdV/Py0YukngIg2eD47Rb3CFPYrLzRjPyppw5hYokrGqDHErf0pQzMLzcAUTUTOYWt8PS473wHaATI=; 24:ws6fpSuNno6/W7OX/puNktqqfgkJXIZ0FguKrwQuepc8zt3Fz0BCTgA/FU+y210W4AGTYTeqamXe5C01VPZxIBiIAWudgk2y4GSducLL3ks= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2774; 7:+4jx13iW1ow4ZIy9Iyt2Z4Umky47YDIpLYqffdXOB/bEnP5sG3Yw2FqQtQNtWv2Y27m0cJKSRZDhsFvce+a2AQU71KJ0JmZxg6PhqW0MfvKEiIRHrIf5rAtIu8IMJEbUuNlNZOR4ZMbCjLJzz4jeBv9Pe41epODpstZjA6R00TQ+Io44v0iJNnn2MCNLxi75t41FERkfpVVE26nONavLhLmRYnZp4OtkBzylJtw7DqGS3OQr3hwym8wLoCabwcBi X-MS-Office365-Filtering-Correlation-Id: b65aae95-3368-41ab-a96b-08d5b5beea26 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 15:09:51.1796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b65aae95-3368-41ab-a96b-08d5b5beea26 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2774 Subject: [dpdk-dev] [PATCH 3/3] rawdev: remove dead code 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, 09 May 2018 15:09:53 -0000 Fixes: c88b3f2558ed ("rawdev: introduce raw device library") Coverity issue: 260406 Signed-off-by: Shreyansh Jain --- lib/librte_rawdev/rte_rawdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c index d314ef96b..284e6aec8 100644 --- a/lib/librte_rawdev/rte_rawdev.c +++ b/lib/librte_rawdev/rte_rawdev.c @@ -88,9 +88,6 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info) RTE_RAWDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL); RTE_FUNC_PTR_OR_ERR_RET(dev_info, -EINVAL); - if (dev_info == NULL) - return -EINVAL; - rawdev = &rte_rawdevs[dev_id]; RTE_FUNC_PTR_OR_ERR_RET(*rawdev->dev_ops->dev_info_get, -ENOTSUP); -- 2.17.0