ARM: imx: romapi: Fix signed integer bitwise ops misuse
authorMarek Vasut <marex@denx.de>
Sun, 2 Jul 2023 01:03:51 +0000 (03:03 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
commitcb5fe9e33697962e4821acc040d0fe9e5eea6712
treeb21cba7d6e9c62b1c84398fe9fb0ef7a98f1f6bd
parentc8645e74113c62e724f1f091acff28f8dccb18c8
ARM: imx: romapi: Fix signed integer bitwise ops misuse

Bitwise operations on signed integers are not defined,
replace them with per-call checks.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
arch/arm/mach-imx/spl_imx_romapi.c