lkml.org 
[lkml]   [2012]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectdrivers/mfd/tps65090.c: duplicated TPS65090_INT_STS tests
    Hi Venu,

    Is this coccinelle warning a trivial one, or indicates some copy&paste
    error? It's introduced by commit 3c33be06 ("mfd: Add support for
    TPS65090").

    drivers/mfd/tps65090.c:239:5-30: duplicated argument to && or ||

    vim +239 drivers/mfd/tps65090.c
    236
    237 static bool is_volatile_reg(struct device *dev, unsigned int reg)
    238 {
    > 239 if ((reg == TPS65090_INT_STS) || (reg == TPS65090_INT_STS))
    240 return true;
    241 else
    242 return false;

    ---
    0-DAY kernel build testing backend Open Source Technology Centre
    Fengguang Wu <wfg@linux.intel.com> Intel Corporation


    \
     
     \ /
      Last update: 2012-07-28 15:01    [W:0.023 / U:0.612 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site