Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: remove useless NULL initialisers

When I added .set_frag_threshold I didn't realise it was already
there which now generated a sparse warning. Therefore, remove
the .set_frag_threshold NULL initialiser, and while at it all the
other useless ones.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Johannes Berg and committed by
John W. Linville
e5704bf0 2df78167

-8
-8
drivers/net/wireless/ath9k/main.c
··· 1648 1648 .config = ath9k_config, 1649 1649 .config_interface = ath9k_config_interface, 1650 1650 .configure_filter = ath9k_configure_filter, 1651 - .get_stats = NULL, 1652 1651 .sta_notify = ath9k_sta_notify, 1653 1652 .conf_tx = ath9k_conf_tx, 1654 - .get_tx_stats = NULL, 1655 1653 .bss_info_changed = ath9k_bss_info_changed, 1656 - .set_tim = NULL, 1657 1654 .set_key = ath9k_set_key, 1658 - .hw_scan = NULL, 1659 - .get_tkip_seq = NULL, 1660 - .set_rts_threshold = NULL, 1661 - .set_frag_threshold = NULL, 1662 1655 .get_tsf = ath9k_get_tsf, 1663 1656 .reset_tsf = ath9k_reset_tsf, 1664 - .tx_last_beacon = NULL, 1665 1657 .ampdu_action = ath9k_ampdu_action, 1666 1658 .set_frag_threshold = ath9k_no_fragmentation, 1667 1659 };