Commit 70d063b9 authored by Peng Li's avatar Peng Li Committed by David S. Miller
Browse files

net: cosa: remove redundant braces {}



This patch removes redundant braces {}, to fix the
checkpatch.pl warning:
"braces {} are not necessary for single statement blocks".

Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8f4b117
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1845,11 +1845,11 @@ static inline void rx_interrupt(struct cosa_data *cosa, int status)
	disable_dma(cosa->dma);
	clear_dma_ff(cosa->dma);
	set_dma_mode(cosa->dma, DMA_MODE_READ);
	if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) {
	if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff))
		set_dma_addr(cosa->dma, virt_to_bus(cosa->rxbuf));
	} else {
	else
		set_dma_addr(cosa->dma, virt_to_bus(cosa->bouncebuf));
	}

	set_dma_count(cosa->dma, (cosa->rxsize&0x1fff));
	enable_dma(cosa->dma);
	release_dma_lock(flags);