]> git.baikalelectronics.ru Git - kernel.git/commit
ipw2x00: clean up a condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Oct 2014 09:59:39 +0000 (12:59 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Oct 2014 18:16:14 +0000 (14:16 -0400)
commit3b31bde919fc807294a8f2c2ec87707eaf7ac830
treeef38ff6da94a4a953ae7ec33159a1e26866fe208
parentac566ba597d107714dd6932c6749fd72747f2e75
ipw2x00: clean up a condition

The original condition was "(PAGE_SIZE - len)" when "(len < PAGE_SIZE)"
is intended.

This condition is not really sufficient, but also not really needed...
If "len > PAGE_SIZE" then it we will print a warning message in dmesg
but there are no other effects.  Maybe we should just remove the
condition?

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/ipw2200.c