[PATCH] Char: sx, remove duplicite code