]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mos7840: remove redundant condition
authorGeyslan G. Bem <geyslan@gmail.com>
Fri, 11 Dec 2015 09:46:42 +0000 (06:46 -0300)
committerJohan Hovold <johan@kernel.org>
Fri, 11 Dec 2015 10:05:49 +0000 (11:05 +0100)
commit1a441d69436fe382091decfcd8799940a09b7ebd
treeef2a10d79da345741addadb4d0f706fb850f2e34
parentbe23da35c402661241d3da5d02eb0626f3c63e7a
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>
drivers/usb/serial/mos7840.c