Bug 79871

Summary: comedi/drivers/ni_atmio16d.c: 2 * possible cut'n'paste errors ?
Product: Drivers Reporter: David Binderman (dcb314)
Component: StagingAssignee: drivers_staging (drivers_staging)
Status: NEW ---    
Severity: normal CC: andrey_utkin
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.16-rc4 Subsystem:
Regression: No Bisected commit-id:

Description David Binderman 2014-07-10 13:11:44 UTC
1.

[linux-3.16-rc4/drivers/staging/comedi/drivers/ni_atmio16d.c:341]: (style) Expression is always false because 'else if' condition matches previous condition at line 338.

    } else if (cmd->convert_arg <= 0xffffffff /* 6553600000 */) {
        base_clock = CLOCK_10_KHZ;
        timer = cmd->convert_arg / 100000;
    } else if (cmd->convert_arg <= 0xffffffff /* 65536000000 */) {

2.

[linux-3.16-rc4/drivers/staging/comedi/drivers/ni_atmio16d.c:409]: (style) Expression is always false because 'else if' condition matches previous condition at line 406.

        } else if (cmd->scan_begin_arg < 0xffffffff /* 6553600000 */) {
            base_clock = CLOCK_10_KHZ;
            timer = cmd->scan_begin_arg / 100000;
        } else if (cmd->scan_begin_arg < 0xffffffff /* 65536000000 */) {