]> 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)
commit81c9f0161c955d7a4b9cbb74056bf210fc090b92
treea4312d00b39cc26e7e07c3dad9252bb599f2cd86
parent00e0e62be9879e7b24a26bb2a178457366d34ed3
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