[PATCH 6.6.y] HID: core: Harden s32ton() against conversion to 0 bits