drivers/staging/ks7010/ks_wlan_net.c:1287: suspicious if ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

drivers/staging/ks7010/ks_wlan_net.c:1287:13: warning: duplicated ‘if’
condition [-Wduplicated-cond]

Source code is

    } else if (enabled) {   /* 1 */
        if (priv->reg.operation_mode == MODE_INFRASTRUCTURE)
            priv->reg.powermgt = POWMGT_SAVE1_MODE;
        else
            return -EINVAL;
    } else if (enabled) {   /* 2 */

I am not sure of a suitable fix for this.

Regards

David Binderman
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux