Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp536550pxb; Thu, 21 Jan 2021 13:14:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTKJSRNXgNgDqWq0jZFZlDozZU45QCLLmSgZU+wvXXikt5i7sj9ciITOYxvvp32Wp+86Cd X-Received: by 2002:a17:907:2d0a:: with SMTP id gs10mr920999ejc.515.1611263661665; Thu, 21 Jan 2021 13:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611263661; cv=none; d=google.com; s=arc-20160816; b=fPKE68k+AXhk46/kBTR6PkVXSA6XTk7+60YQSKBjQp/JUIOXN7TS5hMHnpfsS6qvtJ VE+qRkcvwXt2CZwHZMVma2Hk1al2BkwTuModcogu+nNW1F/ewlAGbJj8vyuPtp16kpVm 9fFsNf/ak4PxbKCZ00PzZkAyfmyfS+99/fB87snMWUW/jhzzlREaHh647PInIMn+E86j QmT3YN2ITAo8KE08kpD/7au9lkxYJVTz+NkhTzZzrwKoO5ssyDmtakS6OMgPsRjZAVS4 lNlG9isTz8q3d0nYPv8ni551sUOsLQMYWqt8Q20fPwNYRT6+hIzTfoobSJbtYoyPpwLu yz8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FlZKwBCsJx7idtbKqyTfbKkdUX+K/S9DeAzuL8Cpuuc=; b=eX8ctuG5XIYrbzBw+OjflYosob2E6gE1442bRQpiq63qDHOpqE1ePCumPE5i03515N Mt+AxdXbQNPTConzv3bkzj6XQ24lekTS7asR4bz2BvF8vZDXhlVtTW0dFMyFcfzybgG5 uCBbN+GqN+W06YrzZOGnYW/YRK1OzSmSDO64xX+BQvCBT4Uxs2GrGdIwO4514iE2fmGE lGwpttKF268WEy6BeYAkuWrs51iXGitzKyDYKdajzXiwc2dcA91r+k8fi8jD8N4PjPZB KSJ3PEuTio3oWzXDv/4hswmiRBDNfZ23CbweNlTRD2CHCZeyBmu5dfWsNdy/LNpMuO92 a8pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si2160752ejr.511.2021.01.21.13.13.57; Thu, 21 Jan 2021 13:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727635AbhAUVIs (ORCPT + 99 others); Thu, 21 Jan 2021 16:08:48 -0500 Received: from antares.kleine-koenig.org ([94.130.110.236]:51608 "EHLO antares.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727248AbhAUU6R (ORCPT ); Thu, 21 Jan 2021 15:58:17 -0500 X-Greylist: delayed 538 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Jan 2021 15:58:15 EST Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id 8270AAD8EB2; Thu, 21 Jan 2021 21:48:22 +0100 (CET) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Wim Van Sebroeck , Guenter Roeck , William Breathitt Gray , Greg Kroah-Hartman Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] watchdog: pcwd: drop always-false if from remove callback Date: Thu, 21 Jan 2021 21:48:11 +0100 Message-Id: <20210121204812.402589-2-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210121204812.402589-1-uwe@kleine-koenig.org> References: <20210121204812.402589-1-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If pcwd_isa_probe() succeeded pcwd_private.io_addr cannot be NULL. (And if pcwd_isa_probe() failed, pcwd_isa_remove() isn't called.) Signed-off-by: Uwe Kleine-König --- drivers/watchdog/pcwd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index e86fa7f8351d..b95cd38f3ceb 100644 --- a/drivers/watchdog/pcwd.c +++ b/drivers/watchdog/pcwd.c @@ -956,9 +956,6 @@ static int pcwd_isa_remove(struct device *dev, unsigned int id) if (debug >= DEBUG) pr_debug("pcwd_isa_remove id=%d\n", id); - if (!pcwd_private.io_addr) - return 1; - /* Disable the board */ if (!nowayout) pcwd_stop(); -- 2.29.2