tty: serial: samsung_tty: Use abs() to simplify some code