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

net: z85230: add some required spaces



Add space required before the open parenthesis '(' and '{'.
Add space required after that close brace '}' and ','
Add spaces required around that '=' , '&', '*', '|', '+', '/' and '-'.

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 a04544ff
Loading
Loading
Loading
Loading
+210 −208
Original line number Diff line number Diff line
@@ -482,9 +482,8 @@ static void z8530_dma_rx(struct z8530_channel *chan)
		status = read_zsreg(chan, R1);

		if (status & END_FR)
		{
			z8530_rx_done(chan);	/* Fire up the next one */
		}

		write_zsctrl(chan, ERR_RES);
		write_zsctrl(chan, RES_H_IUS);
	} else {
@@ -681,7 +680,8 @@ irqreturn_t z8530_interrupt(int irq, void *dev_id)
	while (++work < 5000)
	{
		intr = read_zsreg(&dev->chanA, R3);
		if(!(intr & (CHARxIP|CHATxIP|CHAEXT|CHBRxIP|CHBTxIP|CHBEXT)))
		if (!(intr &
		   (CHARxIP | CHATxIP | CHAEXT | CHBRxIP | CHBTxIP | CHBEXT)))
			break;

		/* This holds the IRQ status. On the 8530 you must read it
@@ -1130,7 +1130,7 @@ EXPORT_SYMBOL(z8530_sync_txdma_close);
/*	Name strings for Z8530 chips. SGI claim to have a 130, Zilog deny
 *	it exists...
 */
static const char *z8530_type_name[]={
static const char * const z8530_type_name[] = {
	"Z8530",
	"Z85C30",
	"Z85230"
@@ -1628,7 +1628,9 @@ netdev_tx_t z8530_queue_xmit(struct z8530_channel *c, struct sk_buff *skb)
	 *	limit, then copy to the flip buffer
	 */

	if(c->dma_tx && ((unsigned long)(virt_to_bus(skb->data+skb->len))>=16*1024*1024 || spans_boundary(skb)))
	if (c->dma_tx &&
	    ((unsigned long)(virt_to_bus(skb->data + skb->len)) >=
	    16 * 1024 * 1024 || spans_boundary(skb)))
	{
		/*	Send the flip buffer, and flip the flippy bit.
		 *	We don't care which is used when just so long as