]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mwifiex: deduplicate code in mwifiex_cmd_tx_rate_cfg()
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 10 Apr 2025 10:24:25 +0000 (12:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 13:34:22 +0000 (15:34 +0200)
commitbf55d51f080eb4a8b722b602508930cc0d50c655
tree26bf655bcfff6c0a7f91288a04b0ad5abee2bca3
parent39df75eb38faf25dbbc58a2b9231de730c64745e
wifi: mwifiex: deduplicate code in mwifiex_cmd_tx_rate_cfg()

The code block inside the if/else is the same with just using
pbitmap_rates if non NULL or priv->bitmap_rates otherwise. Deduplicate
the code by picking the correct pointer first and then using it
unconditionally.

Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Brian Norris <briannorris@chromium.org>
Link: https://patch.msgid.link/20250410-mwifiex-cleanup-1-v6-1-a6bbd4ac4d37@pengutronix.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/marvell/mwifiex/sta_cmd.c