From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E072746074 for ; Mon, 13 Jan 2025 18:20:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1D3E40298; Mon, 13 Jan 2025 18:20:06 +0100 (CET) Received: from mail-ed1-f100.google.com (mail-ed1-f100.google.com [209.85.208.100]) by mails.dpdk.org (Postfix) with ESMTP id 086B340298 for ; Mon, 13 Jan 2025 18:20:05 +0100 (CET) Received: by mail-ed1-f100.google.com with SMTP id 4fb4d7f45d1cf-5d982de9547so8800518a12.2 for ; Mon, 13 Jan 2025 09:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1736788804; x=1737393604; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OBNnxFg8f8ouFb4P2fLYbn/QOzPOFwJhbuxli6Kff/I=; b=M3AQYxe6ug82Iit6X4gdfCIOoKHt6NCtsuBw9UYdq51dMcUqnx+hNiD7EW0thq16NK hsMxInQISL01095PBpqfhlvvqyIJo4P+mTz6/vtnkyReAK9Azi3apkB9nTJwa4hTAXy0 kitJZl5DXGxKshNX6l1+aWVmsJ1oIpykXgpIvwclT2QMfv2j/WR2zmJUdeOvy6XXZXKO 2j4pEvXeqCTxscE2tlKXTSZ3jk2cSk4w7M8ymz6yJ5LnKkYu3MGIUqbfLECNU10Mw4JB MLtZ9qfrPxyf89e/QsbEIUBcmXz1qhEkqxQk/Uym590rJvR8IR9meu4o8DlOq3fhkUXs LojQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736788804; x=1737393604; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OBNnxFg8f8ouFb4P2fLYbn/QOzPOFwJhbuxli6Kff/I=; b=xTrZ0ksb834UHKkLitI6Fq1/xyjzojA6QlhGiNOlg5dmJ0RjrGay+zO5e3pat4VXzz k2qRHs1hj7xozrkA9Tsing3Gv43pruaqp/qMQy1YcR0TelmwHl0afPMgA7s2hgaLMq5w mQuks+i7eCWbAhzTSUcJwOwwRPGTd13rVRseaVPlVl/W2v9Pu+EufOdsDVCqhdcAGY8M dWOOaSidEvDmiKm+QYF8EMf9uerngzl5Debp4HWU0r6JSZ4Q0eaD58xgVHeKrDyRtUrs 1Q3Vnl5gCk3Kg42+CHjPnKiYzHJw629titKLHd1XfvHMugx+GpOb+IEZCKAfFZunF83t oalA== X-Forwarded-Encrypted: i=1; AJvYcCXFd+NhBYlFYFUQh6EDaH842KIoRRyamjISSKis5RHyqJ2GlQOJa0LXR6hIFu/I2xSVQMj0sdY=@dpdk.org X-Gm-Message-State: AOJu0YwYfRfbpX4LpNqQZS3C7YKeLz0hUnGAWzbhsqaj91YU6JDhnCSL pQ9x4QC6nJhDBmowzx3L+D6SnBraGlRRjSDF7JG4KDLPq1+XJjDH8QJLUEUcah5zTg8bpwbfPkh 2+d2mIwVcPOdy/wqnUQxqDXiQ+QvnT2kP X-Gm-Gg: ASbGnctYbo7ZWmex+HvomE0cSJGRF1vBDMnbcoESGREua9kSTzYcfkG8UqJ8miDb66a DPIpdAr4H3IpAgKvZmzYcisN41v5D5bQ7LkWBL6XCpIk52Yh5N97NtrAQ1+DaXl64ptSPBipfu6 UCJj9FWbK2imb0TKnAzGM0dYWjybczQpnZ8yVA4J06+WgC83SNdlAzQlUDJbGRNRu3IcNy/a3gA MdiiEU089KdormvoDkjX5YTMIbQfrDDmsQTRJyrti9iuQcy9paiR4H64lCXC0vO6L+kKkSmk0aS uoMpXllzJrMCtpyZR96bPt459w== X-Google-Smtp-Source: AGHT+IE+Sb/72u6FS5uhCPjZlnj8mkoSJ8jRWFLCSwyhV7yTuyeCrFk8+nAKMA6Vcri2PMVbJSAavZk7Xr/d X-Received: by 2002:a17:907:97c6:b0:aaf:208:fd3f with SMTP id a640c23a62f3a-ab2ab558911mr1994035466b.13.1736788803490; Mon, 13 Jan 2025 09:20:03 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id a640c23a62f3a-ab2c9060bbbsm46021366b.17.2025.01.13.09.20.03; Mon, 13 Jan 2025 09:20:03 -0800 (PST) X-Relaying-Domain: 6wind.com Received: from localhost (rainbow.dev.6wind.com [10.17.1.165]) by smtpservice.6wind.com (Postfix) with ESMTP id 4DAB7147B7; Mon, 13 Jan 2025 18:20:03 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , David Marchand , Ariel Otilibili , Didier Pallard , Edwin Brossette , Olivier Matz , Thierry Herbelot , stable@dpdk.org Subject: [PATCH 1/1] eal/linux: Remove unused values Date: Mon, 13 Jan 2025 18:19:20 +0100 Message-Id: <20250113171920.1185214-2-ariel.otilibili@6wind.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250113171920.1185214-1-ariel.otilibili@6wind.com> References: <20250112185842.9752-1-otilibil@eurecom.fr> <20250113171920.1185214-1-ariel.otilibili@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Found by static analysis: In dev_uev_socket_fd_create(), fd is assigned before a return, and not used. The same for the variables buf and i in dev_uev_parse(). Fixes: c2bd9367e18f ("lib: remove direct access to interrupt handle") Fixes: 0d0f478d0483 ("eal/linux: add uevent parse and process") Signed-off-by: Ariel Otilibili --- lib/eal/linux/eal_dev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/eal/linux/eal_dev.c b/lib/eal/linux/eal_dev.c index e63f24d108c7..be97f56424de 100644 --- a/lib/eal/linux/eal_dev.c +++ b/lib/eal/linux/eal_dev.c @@ -129,7 +129,6 @@ dev_uev_socket_fd_create(void) return 0; err: close(fd); - fd = -1; return ret; } @@ -165,8 +164,6 @@ dev_uev_parse(const char *buf, struct rte_dev_event *event, int length) * uevent from udev. */ if (!strncmp(buf, "libudev", 7)) { - buf += 7; - i += 7; return -1; } if (!strncmp(buf, "ACTION=", 7)) { -- 2.30.2