HciManagerhandleHciEventPacket(): call sizeof() only once


The code was calling sizeof(*event) too many times.
Clean it up by calculating the size as a constexpr and reusing it in
all other places.

Pick-to: 6.9 6.8 6.5
Change-Id: Ief2634d2606ec60a865b4f8e65cbe41a4442e606
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit0755ef4c0c36ed8dd384c6c386d0b9fe8f976daf
parentd8be9e550752d6f5295e2e2f2aaef38dced5c735
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 20 May 2025 13:00:54 +0200