From: Uwe Kleine-König Date: Fri, 22 Jan 2021 09:24:47 +0000 (+0100) Subject: watchdog: pcwd: drop always-false if from remove callback X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d2006bb79411c56b7bb6173f753a0ba6172d1fe6;p=linux.git watchdog: pcwd: drop always-false if from remove callback If pcwd_isa_probe() succeeded pcwd_private.io_addr cannot be NULL. (And if pcwd_isa_probe() failed, pcwd_isa_remove() isn't called.) Acked-by: Guenter Roeck Acked-by: William Breathitt Gray Signed-off-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20210122092449.426097-2-uwe@kleine-koenig.org Signed-off-by: Takashi Iwai --- diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index e86fa7f8351d8..b95cd38f3ceb7 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();