mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
usb: cdc-wdm: remove logically dead code
Remove logically dead code. 'cntr' is always equal to zero when the following line of code is executed: rv = cntr ? cntr : -EAGAIN; Addresses-Coverity-ID: 113227 Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Oliver Neukum <[email protected]> Reviewed-by: Peter Senna Tschudin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
eff0b85efb
commit
53b7f7b53d
1 changed files with 1 additions and 1 deletions
|
|
@ -531,7 +531,7 @@ retry:
|
|||
i++;
|
||||
if (file->f_flags & O_NONBLOCK) {
|
||||
if (!test_bit(WDM_READ, &desc->flags)) {
|
||||
rv = cntr ? cntr : -EAGAIN;
|
||||
rv = -EAGAIN;
|
||||
goto err;
|
||||
}
|
||||
rv = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue