Staging: et1310: Fix the coding style
[firefly-linux-kernel-4.4.55.git] / drivers / staging / et131x / et1310_jagcore.c
index 993b30ea71e22b9960ddeb1b5f29f9a86f48ac84..6fb2c6d29d90aed71509d9e3f647606acac36c3a 100644 (file)
@@ -2,7 +2,7 @@
  * Agere Systems Inc.
  * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
  *
- * Copyright © 2005 Agere Systems Inc.
+ * Copyright Â© 2005 Agere Systems Inc.
  * All rights reserved.
  *   http://www.agere.com
  *
@@ -19,7 +19,7 @@
  * software indicates your acceptance of these terms and conditions.  If you do
  * not agree with these terms and conditions, do not use the software.
  *
- * Copyright © 2005 Agere Systems Inc.
+ * Copyright Â© 2005 Agere Systems Inc.
  * All rights reserved.
  *
  * Redistribution and use in source or binary forms, with or without
@@ -40,7 +40,7 @@
  *
  * Disclaimer
  *
- * THIS SOFTWARE IS PROVIDED \93AS IS\94 AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  * INCLUDING, BUT NOT LIMITED TO, INFRINGEMENT AND THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  ANY
  * USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE IS SOLELY AT THE USERS OWN
@@ -73,9 +73,9 @@
 #include <linux/interrupt.h>
 #include <linux/in.h>
 #include <linux/delay.h>
-#include <asm/io.h>
+#include <linux/io.h>
+#include <linux/bitops.h>
 #include <asm/system.h>
-#include <asm/bitops.h>
 
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
@@ -198,21 +198,19 @@ void et131x_enable_interrupts(struct et131x_adapter *adapter)
        uint32_t MaskValue;
 
        /* Enable all global interrupts */
-       if ((adapter->FlowControl == TxOnly) || (adapter->FlowControl == Both)) {
+       if (adapter->FlowControl == TxOnly || adapter->FlowControl == Both)
                MaskValue = INT_MASK_ENABLE;
-       } else {
+       else
                MaskValue = INT_MASK_ENABLE_NO_FLOW;
-       }
 
-       if (adapter->DriverNoPhyAccess) {
+       if (adapter->DriverNoPhyAccess)
                MaskValue |= 0x10000;
-       }
 
        adapter->CachedMaskValue.value = MaskValue;
        writel(MaskValue, &adapter->CSRAddress->global.int_mask.value);
 }
 
-void et131x_disable_interrupts(struct et131x_adapter * adapter)
+void et131x_disable_interrupts(struct et131x_adapter *adapter)
 {
        /* Disable all global interrupts */
        adapter->CachedMaskValue.value = INT_MASK_DISABLE;