Re: [PATCH] drm/tve200: Fix smatch warning

2022-08-26 Thread Linus Walleij
On Fri, Aug 26, 2022 at 2:05 PM Dan Carpenter wrote: > On Fri, Aug 26, 2022 at 01:35:56PM +0200, Linus Walleij wrote: > > On Thu, May 5, 2022 at 11:52 PM Linus Walleij > > wrote: > > > > > The "ret" variable is ambiguously returning something that > > > could be zero in the tve200_modeset_init()

Re: [PATCH] drm/tve200: Fix smatch warning

2022-08-26 Thread Dan Carpenter
On Fri, Aug 26, 2022 at 01:35:56PM +0200, Linus Walleij wrote: > On Thu, May 5, 2022 at 11:52 PM Linus Walleij > wrote: > > > The "ret" variable is ambiguously returning something that > > could be zero in the tve200_modeset_init() function, assign > > it an explicit error return code to make th

Re: [PATCH] drm/tve200: Fix smatch warning

2022-08-26 Thread Linus Walleij
On Thu, May 5, 2022 at 11:52 PM Linus Walleij wrote: > The "ret" variable is ambiguously returning something that > could be zero in the tve200_modeset_init() function, assign > it an explicit error return code to make this unambiguous. > > Reported-by: Dan Carpenter > Signed-off-by: Linus Walle