]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: remove redundant readiness checks from i2400m_report_tlv_*()
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Sat, 2 May 2009 09:50:03 +0000 (02:50 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Fri, 29 May 2009 01:01:58 +0000 (18:01 -0700)
commit0f0f3c4d57abce44876b68bb1f0e6cd71890f701
tree07706156ef906951c2f602aadfa7793c4409aa0b
parenta4b5b7e810d1ed9b93b97cb08aeb22f38a336810
wimax/i2400m: remove redundant readiness checks from i2400m_report_tlv_*()

Functions i2400m_report_tlv*() are only called from
i2400m_report_hook(), called in a workqueue by
i2400m_report_hook_work(). The scheduler checks for device readiness
before scheduling.

Added an extra check for readiness in i2400m_report_hook_work(), which
makes all the checks down the line redundant.

Obviously the device state could change in the middle, but error
handling would take care of that.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/control.c
drivers/net/wimax/i2400m/rx.c