mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
staging: vt6655: Fix the spacing around operators
Add space around operators to comply in that way with the preferred coding style for the linux kernel. Issue found by checkpatch. Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com> Link: https://lore.kernel.org/r/0f77b97e88c28c503caf25fafb84729509969ec3.1572649242.git.frank@generalsoftwareinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8b3f9afcca
commit
ebacc1a765
|
|
@ -659,12 +659,12 @@ static int device_init_td0_ring(struct vnt_private *priv)
|
|||
desc->td_info->buf = priv->tx0_bufs + i * PKT_BUF_SZ;
|
||||
desc->td_info->buf_dma = priv->tx_bufs_dma0 + i * PKT_BUF_SZ;
|
||||
|
||||
desc->next = &(priv->apTD0Rings[(i+1) % priv->opts.tx_descs[0]]);
|
||||
desc->next = &(priv->apTD0Rings[(i + 1) % priv->opts.tx_descs[0]]);
|
||||
desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_tx_desc));
|
||||
}
|
||||
|
||||
if (i > 0)
|
||||
priv->apTD0Rings[i-1].next_desc = cpu_to_le32(priv->td0_pool_dma);
|
||||
priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
|
||||
priv->apTailTD[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0];
|
||||
|
||||
return 0;
|
||||
|
|
@ -704,7 +704,7 @@ static int device_init_td1_ring(struct vnt_private *priv)
|
|||
}
|
||||
|
||||
if (i > 0)
|
||||
priv->apTD1Rings[i-1].next_desc = cpu_to_le32(priv->td1_pool_dma);
|
||||
priv->apTD1Rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma);
|
||||
priv->apTailTD[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0];
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ static bool s_bAL7230Init(struct vnt_private *priv)
|
|||
ret &= IFRFbWriteEmbedded(priv, (0x3ABA8F00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW));
|
||||
MACvTimer0MicroSDelay(priv, 30);/* 30us */
|
||||
/* TXDCOC:disable, RCK:disable */
|
||||
ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[CB_AL7230_INIT_SEQ-1]);
|
||||
ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[CB_AL7230_INIT_SEQ - 1]);
|
||||
|
||||
MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3 |
|
||||
SOFTPWRCTL_SWPE2 |
|
||||
|
|
@ -558,7 +558,7 @@ static bool RFbAL2230Init(struct vnt_private *priv)
|
|||
MACvTimer0MicroSDelay(priv, 30);/* 30us */
|
||||
ret &= IFRFbWriteEmbedded(priv, (0x00780f00 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW));
|
||||
MACvTimer0MicroSDelay(priv, 30);/* 30us */
|
||||
ret &= IFRFbWriteEmbedded(priv, dwAL2230InitTable[CB_AL2230_INIT_SEQ-1]);
|
||||
ret &= IFRFbWriteEmbedded(priv, dwAL2230InitTable[CB_AL2230_INIT_SEQ - 1]);
|
||||
|
||||
MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3 |
|
||||
SOFTPWRCTL_SWPE2 |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user