[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACvgo51t+LdpRuFw-uXgbstpHMRrgMt3s62mFsyO37OHjuWJNw@mail.gmail.com>
Date: Tue, 12 May 2020 14:01:24 +0100
From: Emil Velikov <emil.l.velikov@...il.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Wei Yongjun <weiyongjun1@...wei.com>,
David Airlie <airlied@...ux.ie>,
kernel-janitors@...r.kernel.org,
"open list:DRM PANEL DRIVERS" <dri-devel@...ts.freedesktop.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] drm/mcde: dsi: Fix return value check in dev_err()
Hi all,
On Tue, 12 May 2020 at 12:49, Linus Walleij <linus.walleij@...aro.org> wrote:
>
> On Tue, Apr 28, 2020 at 4:13 PM Wei Yongjun <weiyongjun1@...wei.com> wrote:
>
> > In case of error, the function of_drm_find_bridge() returns NULL pointer
> > not ERR_PTR(). The IS_ERR() test in the return value check should be
> > replaced with NULL test.
> >
> > Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
>
> Patch applied! Thanks Wei, sorry for the long delay.
>
It would be nice if of_drm_find_bridge and of_drm_find_panel were
consistent - either return NULL or an ERR_PTR.
Otherwise the next person using them is likely to get it wrong.
-Emil
Powered by blists - more mailing lists