Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5552991img; Wed, 27 Mar 2019 10:33:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUqXOmE56t56KTJjC1u8yxPOzF0La/JMjQLrhQ+0P0dWex5MxyY799qegbAAe9e08Jx8wB X-Received: by 2002:a17:902:b788:: with SMTP id e8mr27905756pls.339.1553707993980; Wed, 27 Mar 2019 10:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553707993; cv=none; d=google.com; s=arc-20160816; b=q+/39o9dEbXnji+shI62jk1oJcur/QMA4DO1CyhjaTpSozOKnStZK+rNQQVaybZAxa l5ak7mX9AkJsonFCGqBSC9dJFQJBH7H+YyT3WLXSoRuKe/r0t2DbE0MCIvpflcRtT9do uRmQ+sERgP8C+7X6gWAxdE4lh7D2xJXlGfk5f3FAdq4XKBvVkZeM6zt/dIlGPlXSAG69 ggNxT1C556uSjG9OMo/gnI8ar5fkC0Ny/ZgYfE0AzGgSYMaOQ6JiWehySIL4Xa1239P2 q4ZtWtM1A+qtLrcSaufQ2IUPh+dcqNk8VlWFbV47Rtn/zL8t8iLPBlcpXVDtEsFflU6R 9wdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4G2ryqjT1Rma4M3vOdY6crlxttI9MfBUyzV5fMa6fNI=; b=ot76gD4N+S8kj6VZDQwTfuiPTnjNlklEUtjXINx82ByZhOW5iK9q+VVQLX8s69s/OB XI1Gz6HykfVqyHMHf22kA0RAR1vGUTRejLwOywoqewdWcaVg1LF2cQd6HOrB4+2S0aXc efqEQZ5pDhOsuvwDBSjtQGrLX36LqI1hdTz6FdWrvVoYEZ8/Bl8tpPUdTfj1UyRJL5vY MzoDZceogAVmOHmrKH+/IUI6PzVimLNvs/UUvBvx0rSg6EtIyRYh1Mk5cRWEXOUJPaBj YoszvhyrwUHWMx7+NG609JvkhASywTK8hdajgrQCcbpEC50KymbVKsfgsvdMVaD8qb79 MOaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=p9FG3qXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p87si18910331pfa.48.2019.03.27.10.32.58; Wed, 27 Mar 2019 10:33:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=p9FG3qXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728141AbfC0RcS (ORCPT + 99 others); Wed, 27 Mar 2019 13:32:18 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41022 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727603AbfC0RcR (ORCPT ); Wed, 27 Mar 2019 13:32:17 -0400 Received: by mail-pl1-f195.google.com with SMTP id y5so3629107plk.8; Wed, 27 Mar 2019 10:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4G2ryqjT1Rma4M3vOdY6crlxttI9MfBUyzV5fMa6fNI=; b=p9FG3qXXPJLr5inlIy0KkgayClRbeR0AMf+8rMGWGpRp3H+Rhv3aObBwTwxm3Mcx5/ LUNw4WgffsQpvvRixF/M4ASdqbga77pqsMVENdbPLenu+I5IUuCguYCuW6R8WJvTnzi9 8zd33trKHvlsq7+2CB7jdLC5nYojgmszwQCl6HQMDipoGD9vCxO0fidVhfHo3/QOoK8A i9D68Nm/eqbBPcHx6IR3wSTyCYQKistc+s2RMM+nCYg8qnOnj2iF4SAc7PO3iBvH/P8j 99OCU12CYzo8H0nGKd25N661AvymUC6jDTxJsgQJzsjPBFAvXwg9vQUX3nHldCJDbxOa UmrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=4G2ryqjT1Rma4M3vOdY6crlxttI9MfBUyzV5fMa6fNI=; b=jubJISqNrdSIfOMyuQWAbUyhu1qvedBpz0LhI8h3I7e5JMyUx0+W98Nzd67PwtfbGp +cIBuuEviAUnlZkWL3i9R2h8Buonp4ZtKtAthICyFyKXjrUF4Vd99YzOUV/dnIO+3agr mBtvNgHQ3vCErhj+vyjA+jIYhYC1C4H9mr9nvvoew8YBAf8O0o7FjU13wLpK4Ucadsix smtQxCA/AMsFzoQ8SCK3lMSuKxK5a8gZEbO25TJnzjTRtD05zVZKtac6SlvZbdvipwu9 SZDMYY+T7JNOBbb5L+S3Nk0winN6pQYjBcWtp5jZ4bWEZJhnM9fxlBclYucePrmrdeaZ /HtA== X-Gm-Message-State: APjAAAUvf43D48xtXnfpnlMSyi7XlfLUBFFAnDztEIL3Rby84FLrkAOG qp+1uGS6j/MYq20dgMbU+exOtcYP5Sg= X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr18394797pls.311.1553707937304; Wed, 27 Mar 2019 10:32:17 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id i189sm33010649pfc.71.2019.03.27.10.32.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 10:32:16 -0700 (PDT) Date: Wed, 27 Mar 2019 10:32:14 -0700 From: Guenter Roeck To: "Ji-Ze Hong (Peter Hong)" Cc: peter_hong@fintek.com.tw, wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH V2 1/2] watchdog: f71808e_wdt: separate declaration and assignment Message-ID: <20190327173214.GB9951@roeck-us.net> References: <1553668971-18801-1-git-send-email-hpeter+linux_kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553668971-18801-1-git-send-email-hpeter+linux_kernel@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 02:42:50PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Separate declaration and assignment in watchdog_start() > > Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck Note though that it would be much more valuable if you could consider converting the driver to use the watchdog subsystem instead of trying to clean up the current code. Thanks, Guenter > --- > drivers/watchdog/f71808e_wdt.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c > index 9a1c761258ce..bd2ced9f39f4 100644 > --- a/drivers/watchdog/f71808e_wdt.c > +++ b/drivers/watchdog/f71808e_wdt.c > @@ -338,8 +338,10 @@ static int f71862fg_pin_configure(unsigned short ioaddr) > > static int watchdog_start(void) > { > + int err; > + > /* Make sure we don't die as soon as the watchdog is enabled below */ > - int err = watchdog_keepalive(); > + err = watchdog_keepalive(); > if (err) > return err; > > -- > 2.7.4 >