lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5098F4F0.8020907@ti.com>
Date:	Tue, 6 Nov 2012 13:30:56 +0200
From:	Tomi Valkeinen <tomi.valkeinen@...com>
To:	Chuansheng Liu <chuansheng.liu@...el.com>
CC:	<FlorianSchandinat@....de>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/7] OMAPDSS: DISPC: Fix the usage of wait_for_completion_timeout

On 2012-11-06 19:21, Chuansheng Liu wrote:
> 
> The return value of wait_for_completion_timeout() is always
>> = 0 with unsigned int type.
> 
> So the condition "ret < 0" or "ret >= 0" is pointless.
> 
> Signed-off-by: liu chuansheng <chuansheng.liu@...el.com>
> ---
>  drivers/video/omap2/dss/dispc.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
> index b43477a..9858869 100644
> --- a/drivers/video/omap2/dss/dispc.c
> +++ b/drivers/video/omap2/dss/dispc.c
> @@ -3893,9 +3893,6 @@ int omap_dispc_wait_for_irq_timeout(u32 irqmask, unsigned long timeout)
>  	if (timeout == 0)
>  		return -ETIMEDOUT;
>  
> -	if (timeout == -ERESTARTSYS)
> -		return -ERESTARTSYS;
> -
>  	return 0;
>  }

Thanks. I'll apply this to omapdss tree to avoid any conflicts.

 Tomi




Download attachment "signature.asc" of type "application/pgp-signature" (898 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ