From nobody Sat Oct 4 22:37:05 2025 Received: from cmccmta1.chinamobile.com (cmccmta2.chinamobile.com [111.22.67.135]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C04C2D6E4B; Tue, 12 Aug 2025 07:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.135 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754985432; cv=none; b=qD7Rt17/TJG/8KQD+NDnKg0ZC9Nojabxz8g0RNJJXtX5qn60fftX+QNO8MSoREmMm3AfscOSoLOcMcC7auCB7+MgoScobizrLQtQY1m2GLD74T6S7XxEkePjDYc8Q+EO1bgkOD7TCuXBCejJO67nbewzMqf8vZEZxBU7VYWjoEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754985432; c=relaxed/simple; bh=fBZW+gSb3x+bKEeBXEiVF8gvx98ESt7G5KmM8aSlMto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XpjXh7ojlNgJsq8J7FPBOVGeVOfcmm4bb9GiwwZnhXelfhM9EgM7tUOog+P7qYBQLVpFxCaVjDGwA33K4n8gNmmJ3amUobIKFMOkLudNA+pQpipUhUB1UR449lCMO3crQwAqKXY0HagH2Na0vjlrOn5BYX88YWgv8+b0bRJwlEk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app03-12003 (RichMail) with SMTP id 2ee3689af30eaa6-96370; Tue, 12 Aug 2025 15:53:56 +0800 (CST) X-RM-TRANSID: 2ee3689af30eaa6-96370 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from FHA-W4100033 (unknown[10.55.1.70]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee4689af30cac4-dffae; Tue, 12 Aug 2025 15:53:56 +0800 (CST) X-RM-TRANSID: 2ee4689af30cac4-dffae From: bajing To: shuah@kernel.org Cc: lizhijian@fujitsu.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bajing@cmss.chinamobile.com Subject: [PATCH] watchdog-test.c: Remove unused variable in main Date: Tue, 12 Aug 2025 15:53:45 +0800 Message-ID: <20250812075345.872-1-bajing@cmss.chinamobile.com> X-Mailer: git-send-email 2.50.1.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since $optind is not used in the subsequent code, the variable should be removed. Signed-off-by: bajing --- tools/testing/selftests/watchdog/watchdog-test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testi= ng/selftests/watchdog/watchdog-test.c index a1f506ba5578..837001a9e3a0 100644 --- a/tools/testing/selftests/watchdog/watchdog-test.c +++ b/tools/testing/selftests/watchdog/watchdog-test.c @@ -209,8 +209,6 @@ int main(int argc, char *argv[]) exit(ret); } =20 - optind =3D 0; - while ((c =3D getopt_long(argc, argv, sopts, lopts, NULL)) !=3D -1) { switch (c) { case 'b': --=20 2.33.0