Skip to content
Commit 92a42d8f authored by Stefan Petersen's avatar Stefan Petersen Committed by Carles Cufí
Browse files

drivers: ethernet: eth_stm32_hal: Fix cppcheck warning



When running cppcheck on eth_stm32_hal.c it generated a warning for
shiftTooManyBitsSigned.

The solution is to make sure that the numeric value shifted is unsigned.

Updated to use BIT() macro as suggested by GeorgeGCV.

Fixes: #57336

Signed-off-by: default avatarStefan Petersen <spe@ciellt.se>
parent 091f425c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment