From patchwork Wed Dec 13 09:45:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Werner Fischer X-Patchwork-Id: 753900 Received: from srv.wefi.net (srv.wefi.net [80.66.63.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB9A2DB for ; Wed, 13 Dec 2023 01:45:34 -0800 (PST) Received: from x390.thomas-krenn.com (unknown [91.223.201.37]) by srv.wefi.net (Postfix) with ESMTPA id 824415A358D; Wed, 13 Dec 2023 10:45:33 +0100 (CET) From: Werner Fischer To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, Werner Fischer Subject: [PATCH 2/4] watchdog: it87_wdt: Remove redundant max_units setting Date: Wed, 13 Dec 2023 10:45:23 +0100 Message-Id: <20231213094525.11849-2-devlists@wefi.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231213094525.11849-1-devlists@wefi.net> References: <20231213094525.11849-1-devlists@wefi.net> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Commit 893dc8b5c978 ("watchdog: it87: Drop support for resetting watchdog though CIR and Game port") removed the try_gameport variable, and left max_units setting redundant. To clean up the code, this patch removes this redundant setting. Signed-off-by: Werner Fischer --- drivers/watchdog/it87_wdt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/it87_wdt.c b/drivers/watchdog/it87_wdt.c index 6b7f7ec03633..ca377096bdd7 100644 --- a/drivers/watchdog/it87_wdt.c +++ b/drivers/watchdog/it87_wdt.c @@ -274,10 +274,6 @@ static int __init it87_wdt_init(void) case IT8712_ID: max_units = (chip_rev < 8) ? 255 : 65535; break; - case IT8716_ID: - case IT8726_ID: - max_units = 65535; - break; case IT8607_ID: case IT8613_ID: case IT8620_ID: @@ -287,9 +283,11 @@ static int __init it87_wdt_init(void) case IT8655_ID: case IT8665_ID: case IT8686_ID: + case IT8716_ID: case IT8718_ID: case IT8720_ID: case IT8721_ID: + case IT8726_ID: case IT8728_ID: case IT8772_ID: case IT8783_ID: