rt2x00: use helper to check capability/requirement
Use rt2x00_has_cap_flag macro to check rt2x00dev->cap_flags. Signed-off-by: Fred Chou <fred.chou.nd@gmail.com> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -96,7 +96,7 @@ int rt2x00lib_load_firmware(struct rt2x00_dev *rt2x00dev)
|
||||
{
|
||||
int retval;
|
||||
|
||||
if (!test_bit(REQUIRE_FIRMWARE, &rt2x00dev->cap_flags))
|
||||
if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_FIRMWARE))
|
||||
return 0;
|
||||
|
||||
if (!rt2x00dev->fw) {
|
||||
|
Reference in New Issue
Block a user