/* Factorization helper for the command state machine: Submit a CSW read and go to STAT state.  */
static void ub_state_stat(struct ub_dev *sc, struct ub_scsi_cmd *cmd)
/* Factorization helper for the command state machine: Submit a CSW read and go to STAT state.  */
static void ub_state_stat(struct ub_dev *sc, struct ub_scsi_cmd *cmd)
{
	if (__ub_state_stat(sc, cmd) != 0)
		return;
	cmd->stat_count = 0;
	cmd->state = UB_CMDST_STAT;
}