From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Wed, 28 Sep 2016 17:59:06 +0300 From: Mika Westerberg To: Wei Yongjun Cc: Wim Van Sebroeck , Guenter Roeck , "Rafael J. Wysocki" , Wei Yongjun , linux-watchdog@vger.kernel.org Subject: Re: [PATCH -next] watchdog: wdat_wdt: fix return value check in wdat_wdt_probe() Message-ID: <20160928145906.GD1218@lahna.fi.intel.com> References: <1475074286-13834-1-git-send-email-weiyj.lk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475074286-13834-1-git-send-email-weiyj.lk@gmail.com> List-ID: On Wed, Sep 28, 2016 at 02:51:26PM +0000, Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Signed-off-by: Wei Yongjun Acked-by: Mika Westerberg