[PATCH 6.16 622/627] HID: core: Harden s32ton() against conversion to 0 bits