[PATCH 1/2] ec_bhf: inverted xmas tree.
From: Francois Romieu
Date: Sat May 03 2014 - 05:15:26 EST
Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>
---
drivers/net/ethernet/ec_bhf.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/ec_bhf.c b/drivers/net/ethernet/ec_bhf.c
index feb40cd..e6e303c 100644
--- a/drivers/net/ethernet/ec_bhf.c
+++ b/drivers/net/ethernet/ec_bhf.c
@@ -204,8 +204,8 @@ static void ec_bhf_reset(struct ec_bhf_priv *priv)
static void ec_bhf_send_packet(struct ec_bhf_priv *priv, struct tx_desc *desc)
{
- u32 addr = (u8 *)desc - priv->tx_buf.buf;
u32 len = le16_to_cpu(desc->header.len) + sizeof(desc->header);
+ u32 addr = (u8 *)desc - priv->tx_buf.buf;
iowrite32((ALIGN(len, 8) << 24) | addr, priv->fifo_io + FIFO_TX_REG);
@@ -561,11 +561,11 @@ static const struct net_device_ops ec_bhf_netdev_ops = {
static int ec_bhf_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
- int err = 0;
- void * __iomem io;
- void * __iomem dma_io;
struct net_device *net_dev;
struct ec_bhf_priv *priv;
+ void * __iomem dma_io;
+ void * __iomem io;
+ int err = 0;
err = pci_enable_device(dev);
if (err)
--
1.7.10.4
--zYM0uCDKw75PZbzx
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-ec_bhf-line-breaks-and-indent.patch"