mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
USB: mos7840: remove redundant condition
This patch removes redundant condition. (length && length > 5) can be reduced to a single evaluation. Tested by compilation only. Caught by cppcheck. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
232dce89b5
commit
365a0442f6
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ static void mos7840_interrupt_callback(struct urb *urb)
|
|||
* Byte 4 IIR Port 4 (port.number is 3)
|
||||
* Byte 5 FIFO status for both */
|
||||
|
||||
if (length && length > 5) {
|
||||
if (length > 5) {
|
||||
dev_dbg(&urb->dev->dev, "%s", "Wrong data !!!\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue