rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers
Use the appropriate helper functions instead of directly accessing the rt2x00dev->cap_flags field to check device capability flags. This improves readability of the code a bit. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
a44d01419c
commit
7b8a00dc57
@@ -750,7 +750,7 @@ void rt2x00debug_register(struct rt2x00_dev *rt2x00dev)
|
||||
intf, &rt2x00debug_fop_queue_stats);
|
||||
|
||||
#ifdef CONFIG_RT2X00_LIB_CRYPTO
|
||||
if (test_bit(CAPABILITY_HW_CRYPTO, &rt2x00dev->cap_flags))
|
||||
if (rt2x00_has_cap_hw_crypto(rt2x00dev))
|
||||
intf->crypto_stats_entry =
|
||||
debugfs_create_file("crypto", S_IRUGO, intf->queue_folder,
|
||||
intf, &rt2x00debug_fop_crypto_stats);
|
||||
|
Reference in New Issue
Block a user