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: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a04544ffe8
commit
b87a5cf656
|
@ -482,9 +482,8 @@ static void z8530_dma_rx(struct z8530_channel *chan)
|
||||||
status = read_zsreg(chan, R1);
|
status = read_zsreg(chan, R1);
|
||||||
|
|
||||||
if (status & END_FR)
|
if (status & END_FR)
|
||||||
{
|
|
||||||
z8530_rx_done(chan); /* Fire up the next one */
|
z8530_rx_done(chan); /* Fire up the next one */
|
||||||
}
|
|
||||||
write_zsctrl(chan, ERR_RES);
|
write_zsctrl(chan, ERR_RES);
|
||||||
write_zsctrl(chan, RES_H_IUS);
|
write_zsctrl(chan, RES_H_IUS);
|
||||||
} else {
|
} else {
|
||||||
|
@ -681,7 +680,8 @@ irqreturn_t z8530_interrupt(int irq, void *dev_id)
|
||||||
while (++work < 5000)
|
while (++work < 5000)
|
||||||
{
|
{
|
||||||
intr = read_zsreg(&dev->chanA, R3);
|
intr = read_zsreg(&dev->chanA, R3);
|
||||||
if(!(intr & (CHARxIP|CHATxIP|CHAEXT|CHBRxIP|CHBTxIP|CHBEXT)))
|
if (!(intr &
|
||||||
|
(CHARxIP | CHATxIP | CHAEXT | CHBRxIP | CHBTxIP | CHBEXT)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* This holds the IRQ status. On the 8530 you must read it
|
/* 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
|
/* Name strings for Z8530 chips. SGI claim to have a 130, Zilog deny
|
||||||
* it exists...
|
* it exists...
|
||||||
*/
|
*/
|
||||||
static const char *z8530_type_name[]={
|
static const char * const z8530_type_name[] = {
|
||||||
"Z8530",
|
"Z8530",
|
||||||
"Z85C30",
|
"Z85C30",
|
||||||
"Z85230"
|
"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
|
* 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.
|
/* Send the flip buffer, and flip the flippy bit.
|
||||||
* We don't care which is used when just so long as
|
* We don't care which is used when just so long as
|
||||||
|
|
Loading…
Reference in New Issue