[0/2] net/ionic: fix up minor coverity issues
Message ID | 20221103134909.21791-1-andrew.boyer@amd.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CAE93A00C2; Thu, 3 Nov 2022 14:49:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9515B42D03; Thu, 3 Nov 2022 14:49:26 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2078.outbound.protection.outlook.com [40.107.223.78]) by mails.dpdk.org (Postfix) with ESMTP id D34F942D02 for <dev@dpdk.org>; Thu, 3 Nov 2022 14:49:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cfp/micwzIF20A4iONrt+zC5ioR6sZMBoexmiKU83D8PHa4fNGv50ok3paJNswh7ygthMSBCa+lnzng380owksRLinS8wYjWoOLvLNHDYQU+GXkzS8ny6sW9KrOi+8R3WMKD1SVRKZUkCYrNOVla7cnVis1IykXMNJURmjXSSYtFwI5Ya4GYPNKduFgdMXuzexyEgETbtMvfHltMqfzV76Ah3HcIcEOOGzNR2l4bRA35E3z3Z7xZMSUoNo+u0oCLhA3dhXO7LkcBhVuC6ljGKQiEqw0010MXg5AE5d2QYwsWTPkP+/yganwINEwC+aKEk4YZJY2X7sn3BuSSNu1log== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GBALZ4BMujSN+UwOzeiNvfzkHZnja1rsOlLwPj/H9Qw=; b=Pm3yJv1WtFAsyfbMcX6UXaPjPLGCgUegIOhDhxHGEP3sRXw5e1k4OME925GY0vclOjaCJNQe4rWsO6F1dE3hHFkVCB4zbGkZN1hARdKadHewSWYOCFgZOk53jIGe56/A2ZATjArrw5NHrNyN1bmfeQka7hWvh81RXK4/uH31fZQFeQKYUi+JADPbSAH81WCni2vV9K6XHMyg87xxinSX8emx/39KIX6qvVih0zGu0mPg0C1tBuKOmQ8IjzkCzSoPPP6071+Gqg1vMJeI77zc56fKHdXpaWnGIDI/2MZEFMf0JoEcMAmk9pKQSCY7bQGpa6Kx+Ww3a1+XXVC+3D6X7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GBALZ4BMujSN+UwOzeiNvfzkHZnja1rsOlLwPj/H9Qw=; b=d+8ZDHVfSznzJbJwPFIwuVJXDJ/9yrDqKNpQwfPmJUc7yImdeHV3rUii4IpU4FwFpbNaf1lQOVLkD9VuKHGcsBwNNSDJqlJ7C+qZrUagL1Xq+fAspFyLl4qS9d+X+KWNPktZ9DrTBW0pZ4oSLncv4c89kNc4vWzjhjqmokDJ9LI= Received: from BN0PR04CA0023.namprd04.prod.outlook.com (2603:10b6:408:ee::28) by BL1PR12MB5971.namprd12.prod.outlook.com (2603:10b6:208:39a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Thu, 3 Nov 2022 13:49:24 +0000 Received: from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::dc) by BN0PR04CA0023.outlook.office365.com (2603:10b6:408:ee::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22 via Frontend Transport; Thu, 3 Nov 2022 13:49:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Thu, 3 Nov 2022 13:49:23 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 08:49:23 -0500 From: Andrew Boyer <andrew.boyer@amd.com> To: <dev@dpdk.org> CC: Andrew Boyer <andrew.boyer@amd.com> Subject: [PATCH 0/2] net/ionic: fix up minor coverity issues Date: Thu, 3 Nov 2022 06:49:07 -0700 Message-ID: <20221103134909.21791-1-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT045:EE_|BL1PR12MB5971:EE_ X-MS-Office365-Filtering-Correlation-Id: 38c073b8-2796-47fc-7343-08dabda23774 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ByYQ510sXJbEVKrcfXEsYB2HuAPoYF/kk1nJQek0cFzwhu04bULqBulsBi2zopO4sqVTCGCYLIDZh53D0llPgpojX2ku7WcIYFno/WeVd6xVdLkcaOkth6ZIN3o2H+oAiWWg046RER88fXPOVgMNcKQAXL+3rF7fEJT3x7YH1B8HaN1owkmYw0rQAPB6OXsnv+7eToFzKNOfXnyYL0M5R5bZeGfRiAauc2VL9MQ9h/YMD+d88QHVgFUgFr+bIGvpeK88SqT5qFlILAs+1i2Ls8u7+hgFXh6IrfRVu45hQZ++ESXSFgUM0v5qwrEa2ZKerF+z58nf7fi8E7EVIyu01wHl85jQHeNEdwQVVFpJDK+QYMjbHK9mGca2EHCittufhbGzT2J+cY4yYxg7TW4tMPe5HfxLu3Stwr042TvQgLsBZPSUs/UDBtx4lJ0USvYTv3QiqQrDemG7LgVB1PZsXfivOMbGt/6xbpngnDX5EAF3cnMzNbjSNDSJNsAQYynvapuyzmnkQKckpDdjvRi19KHjPh4r/qn31z+EhQRq6TsAEQ4zNs0LKG9GFATMXD0prrt2uruqC4i09LpNRhXPs0eQejkKZuMFmI3VP4kKs/f46q0AUwji3lJSK89gEN6rqj79vLlh/sX6kNrjkt4trFFB46m1LiAc3aHgujoPzDYXK/SDwyUuWptPaDVLAii/hHtlLiby8Loyb0As8FqC2EDcbwgqKPctWPRglpL/VOwc/gEUUgzPmM3QcS0EHwo/tueygo3jQ7kgvcKNbbEPCL/6PQimmFZlb/AMBBpesqMDk+36//0XtpiYSaNBFbPp X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(376002)(136003)(39860400002)(396003)(346002)(451199015)(46966006)(36840700001)(40470700004)(316002)(36756003)(478600001)(16526019)(4326008)(8936002)(4744005)(44832011)(86362001)(186003)(83380400001)(36860700001)(81166007)(426003)(47076005)(356005)(5660300002)(2906002)(6916009)(41300700001)(26005)(1076003)(82740400003)(2616005)(40460700003)(8676002)(336012)(40480700001)(70586007)(82310400005)(6666004)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2022 13:49:23.7826 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38c073b8-2796-47fc-7343-08dabda23774 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5971 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Andrew Boyer
Nov. 3, 2022, 1:49 p.m. UTC
These patches will make no functional difference, but should
eliminate four coverity issues.
Alternatively, we could just mark them as False Positive or
Ignored in coverity.
Signed-off-by: Andrew Boyer <andrew.boyer@amd.com>
Andrew Boyer (2):
net/ionic: fix up minor coverity issue in queue allocation
net/ionic: fix up minor coverity issue in packet transmit
drivers/net/ionic/ionic_lif.c | 4 ++--
drivers/net/ionic/ionic_rxtx_sg.c | 2 +-
drivers/net/ionic/ionic_rxtx_simple.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)