]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cf5990b41253af1a1b632d8472ce83b37aa9b7e
treea4312d00b39cc26e7e07c3dad9252bb599f2cd86
parent177839666f8e09c1fab0671850ae56d8959d7be2
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