wlcore: tidy up use of fw_log.actual_buff_size
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 3 Jun 2021 11:54:14 +0000 (12:54 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 14 Jun 2021 15:49:41 +0000 (18:49 +0300)
commit913112398d5e3e64eb3a45b8a0f1c196daed8f0b
treea4312d00b39cc26e7e07c3dad9252bb599f2cd86
parent11ef6bc846dcdce838f0b00c5f6a562c57e5d43b
wlcore: tidy up use of fw_log.actual_buff_size

Tidy up the use of fw_log.actual_buff_size - rather than reading it
multiple times and applying the endian conversion, read it once into
actual_len and use that instead.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/E1lolvS-0003Ql-NJ@rmk-PC.armlinux.org.uk
drivers/net/wireless/ti/wlcore/event.c