lkml.org 
[lkml]   [2012]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2/7] OMAPDSS: DISPC: Fix the usage of wait_for_completion_timeout
    From
    Date

    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@intel.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;
    }

    --
    1.7.0.4




    \
     
     \ /
      Last update: 2012-11-06 10:04    [W:4.038 / U:1.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site