From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50075.outbound.protection.outlook.com [40.107.5.75]) by dpdk.org (Postfix) with ESMTP id 692531B49D for ; Tue, 23 Oct 2018 12:43:26 +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:X-MS-Exchange-SenderADCheck; bh=l00RIcchW5Qa+K+93RPpAfzZ1Vbvx10QsK0OsVLwF7c=; b=TjfKYSDMTDpOSr/xyAzZ40tDxHdhc4PC2BAEGC/Q/iL1N2CocGueR9yTrtbgE5VdcwVo3W2bTsW6UzYXm8TmtWWHMS8XPjPvztsUxzQUGIC2gXWEfjEEJQlDLQXKSLRdHUvJZI50K3Agy7iESIBr5KXgY75gjahA9QMT8vMTgLc= Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (20.177.56.80) by VI1PR04MB4254.eurprd04.prod.outlook.com (52.134.31.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Tue, 23 Oct 2018 10:43:25 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::88ff:b776:3f9c:5bb2]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::88ff:b776:3f9c:5bb2%2]) with mapi id 15.20.1250.028; Tue, 23 Oct 2018 10:43:25 +0000 From: Shreyansh Jain To: Ferruh Yigit , Rosen Xu CC: "dev@dpdk.org" , "tianfei.zhang@intel.com" , Hemant Agrawal Thread-Topic: [dpdk-dev] [PATCH] drivers/raw/ifpga_rawdev: fix coverity issue 323508 Thread-Index: AQHUanLQMIUKYkT+zUSkA7fP7dwca6UsacQAgAAtL4CAAA56AA== Date: Tue, 23 Oct 2018 10:43:24 +0000 Message-ID: References: <1540259449-135300-1-git-send-email-rosen.xu@intel.com> <74cb8aff-f809-b999-8c2e-17f24599d827@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.142.187.166] x-clientproxiedby: BM1PR01CA0117.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::33) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:71::16) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB4254; 6:Xq7ndrm1SHjBIMe4+B1yMPIrUx8KTFHE9c5Vl74DcrZsjJfrVdDVFNW7BGn3jZzMP7alLX/36bAw8pRqXCTqoJsApN/INVNhbebnBEsOpH8oOEjureZqNJECq0nTMzrcTkVKIxyaRd3YOiMwG/YjMQ97q84sbVo15btl+Pyq9te/Nfn1na2/oQ+D2IB1S5NsnAMzsPLv/+Q3LD2ZeurYRrGjWYZFVA7VfPF+pACi9dANYKE2PCgyCyq56mUWdUwsgwGI9GqYD0TSMQIYd1frxb923rwwWU1iLUlp86Bf7g2TU6usP6+OWi9PlrkGb450LWTE5Dm3MBv91ZctzkBv/MFzCV6rH+rQLD7PEujD2fVV6b41u+yuPU0fqiRzQIcWB5QWN02z5GTnYAczZ1BZFns1+FBeMpCRT+rj/Fw1LXcz3P6kKVrLMzdrkEh4nwJDSQOk+04cetlU+SiAxkgOog==; 5:iW0c/wb+GZzuTFC3t8YRn0uT6Y9fKrw4J/7cRIY1tEGIxkIh2N/dHlDzasdc2PVSX908FN+1MZ7dVApOd8eMb9meTiqi6pt3PBo4kwfJh2mcQGK5YMxCzDBLvswZv0JeUyGhEgoUbA3Z7U1A727td85axNSUvcpxCQyjS6Scp6g=; 7:9mbLdjUflAJDSl4SRcpXl11tRU9UUigBWsvxkNNE82FsgovmjQkLFWwpwCYlANau8jD/o5zkbReUvf/MgYOUimIY6RWvKZ9sF9ddHWOqM+/Dsd8RhZ3PMejpJqNW72W4ibsdW53vwTAHmrNfsWUfEUso328oe/yi+aY9u+uCpoZ6zRumoAlGzTaOr54byCZuljzFrpQOWKo1Yd52PsA5IgCEc0AwBHC5L+sU08utfZKHvE3OhTwdCsMX5tqI9AXm x-ms-office365-filtering-correlation-id: 823d1a14-925b-4a5d-5ec9-08d638d45b6e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4254; x-ms-traffictypediagnostic: VI1PR04MB4254: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB4254; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4254; x-forefront-prvs: 0834BAF534 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(366004)(346002)(396003)(136003)(5403001)(189003)(199004)(5250100002)(6486002)(229853002)(81166006)(186003)(71190400001)(81156014)(6512007)(7736002)(256004)(6116002)(86362001)(6346003)(3846002)(26005)(71200400001)(66066001)(8936002)(8676002)(966005)(44832011)(102836004)(2900100001)(14454004)(78486010)(2616005)(446003)(316002)(476003)(97736004)(478600001)(486006)(11346002)(68736007)(305945005)(55236004)(36756003)(110136005)(54906003)(25786009)(6246003)(99286004)(6306002)(6436002)(31686004)(52116002)(31696002)(53936002)(105586002)(106356001)(53546011)(2906002)(4326008)(76176011)(5660300001)(6506007)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4254; H:VI1PR04MB4688.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-microsoft-antispam-message-info: JnQ6ZhDKp12nl1hWxnPJbk38GEvi0CpwZKBDP5WMM37blvADOCNiLCS4aqQ9VVBxAD5cpBHdC/3G4Zqs0YocxDM78MR2ZouibRx4Gy1vLuQBVrc5Y/hnVt9v4WwfIv6Mh0a/H/6o9FlvyVDOEcLuyAOEKnmtXKMoTK0RPLz2Pg3P9f+lXiwUi8R5WMb9YdnadcgcCgKQADEdEzAXjff31HHVmHxjIrVNzj8RxEb7vNH0M52d9O947skYKqUeOSgLbD5X1qNxJm01pfIwrbU7rzDblpRGuZMKrFTLLICaTRj46NgSu9EeSlGFdDKn+8y4c3T95Tb4SOyWvdZRYEO8GIwB1U/Uh+tpnfILKU7TBtw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 823d1a14-925b-4a5d-5ec9-08d638d45b6e X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 10:43:25.0655 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4254 Subject: Re: [dpdk-dev] [PATCH] drivers/raw/ifpga_rawdev: fix coverity issue 323508 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: Tue, 23 Oct 2018 10:43:26 -0000 T24gVHVlc2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