Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1193867 > unrolled thread

Re: [PATCH RFC] drm/i2c: tda998x: dead-code or unhandled error condition ?

Started byJean-Francois Moine <moinejf@free.fr>
First post2015-07-28 10:30 +0200
Last post2015-07-28 10:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH RFC] drm/i2c: tda998x: dead-code or unhandled error  condition ? Jean-Francois Moine <moinejf@free.fr> - 2015-07-28 10:30 +0200

#1193867 — Re: [PATCH RFC] drm/i2c: tda998x: dead-code or unhandled error condition ?

FromJean-Francois Moine <moinejf@free.fr>
Date2015-07-28 10:30 +0200
SubjectRe: [PATCH RFC] drm/i2c: tda998x: dead-code or unhandled error condition ?
Message-ID<pR8qR-3GF-3@gated-at.bofh.it>
On Wed, 10 Jun 2015 14:58:48 +0200
Nicholas Mc Guire <hofrat@osadl.org> wrote:

> event API conformance testing with coccinelle spatches are being
> used to locate API usage inconsistencies this triggert with:
> ./drivers/gpu/drm/i2c/tda998x_drv.c:1062
>         incorrect check for negative return
> 
> The return of wait_event_timeout is always >= 0, thus the negative 
> check was effectively being ignoring - as the timeout will be checked
> a few lines below the error condition being checked here seems to be
> wrong or this is simply dead code which would be my guess as the
> timeout condition check covers the wait-queue related failure condition.
> 
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>

Acked-by: Jean-Francois Moine <moinejf@free.fr>

-- 
Ken ar c'hentaƱ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web