/* stmmac_verify_args - verify the driver parameters. Description: it verifies if some wrong parameter is passed to the driver. Note that wrong parameters are replaced with the default values.  */
static void stmmac_verify_args(void)
/* stmmac_verify_args - verify the driver parameters. Description: it verifies if some wrong parameter is passed to the driver. Note that wrong parameters are replaced with the default values.  */
static void stmmac_verify_args(void)
{
	if (unlikely(watchdog < 0))
		watchdog = TX_TIMEO;
	if (unlikely(dma_rxsize < 0))
		dma_rxsize = DMA_RX_SIZE;
	if (unlikely(dma_txsize < 0))
		dma_txsize = DMA_TX_SIZE;
	if (unlikely((buf_sz < DMA_BUFFER_SIZE) || (buf_sz > BUF_SIZE_16KiB)))
		buf_sz = DMA_BUFFER_SIZE;
	if (unlikely(flow_ctrl > 1))
		flow_ctrl = FLOW_AUTO;
	else if (likely(flow_ctrl < 0))
		flow_ctrl = FLOW_OFF;
	if (unlikely((pause < 0) || (pause > 0xffff)))
		pause = PAUSE_TIME;
	return;
}