[PATCH v2] HID: core: Harden s32ton() against conversion to 0 bits