[PATCH -next] drm/tegra: fix return value check

2013-10-29 Thread Thierry Reding
On Mon, Oct 28, 2013 at 04:48:40PM -0600, Stephen Warren wrote: > On 10/28/2013 04:38 PM, Thierry Reding wrote: > > On Mon, Oct 28, 2013 at 03:51:32PM -0600, Stephen Warren wrote: > >> On 10/28/2013 02:53 AM, Thierry Reding wrote: > >>> On Mon, Oct 21, 2013 at 11:34:07AM +0800, Wei Yongjun wrote:

[PATCH -next] drm/tegra: fix return value check

2013-10-29 Thread Thierry Reding
On Mon, Oct 28, 2013 at 03:51:32PM -0600, Stephen Warren wrote: > On 10/28/2013 02:53 AM, Thierry Reding wrote: > > On Mon, Oct 21, 2013 at 11:34:07AM +0800, Wei Yongjun wrote: > >> From: Wei Yongjun > >> > >> In case of error, the function clk_get_parent() and > >> devm_ioremap_resource()

[PATCH -next] drm/tegra: fix return value check

2013-10-28 Thread Stephen Warren
On 10/28/2013 04:38 PM, Thierry Reding wrote: > On Mon, Oct 28, 2013 at 03:51:32PM -0600, Stephen Warren wrote: >> On 10/28/2013 02:53 AM, Thierry Reding wrote: >>> On Mon, Oct 21, 2013 at 11:34:07AM +0800, Wei Yongjun wrote: From: Wei Yongjun In case of error, the function

[PATCH -next] drm/tegra: fix return value check

2013-10-28 Thread Stephen Warren
On 10/28/2013 02:53 AM, Thierry Reding wrote: > On Mon, Oct 21, 2013 at 11:34:07AM +0800, Wei Yongjun wrote: >> From: Wei Yongjun >> >> In case of error, the function clk_get_parent() and >> devm_ioremap_resource() returns ERR_PTR() and never returns NULL. >> The NULL test in the return value

[PATCH -next] drm/tegra: fix return value check

2013-10-21 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_get_parent() and 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 ---