atheros: do not initialize statics to 0 or false
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jun 2014 09:05:47 +0000 (09:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jun 2014 09:05:47 +0000 (09:05 +0000)
as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41086

target/linux/atheros/patches-3.10/100-board.patch
target/linux/atheros/patches-3.10/130-watchdog.patch
target/linux/atheros/patches-3.10/220-enet_micrel_workaround.patch

index df7dcf602049ead3860d6b4f044ae747a4525fc0..7192a7b1dc00da9f1474bc985aa0a695b8f638f7 100644 (file)
 +#include "devices.h"
 +#include "ar2315.h"
 +
 +#include "devices.h"
 +#include "ar2315.h"
 +
-+static u32 gpiointmask = 0, gpiointval = 0;
++static u32 gpiointmask, gpiointval;
 +
 +static inline void ar2315_gpio_irq(void)
 +{
 +
 +static inline void ar2315_gpio_irq(void)
 +{
index f98b6b21685cc57996e9ca54aba068758cdc13e9..506b5f95613db33fef64be6aadea612868f35203 100644 (file)
@@ -44,8 +44,8 @@
 +#define HEARTBEAT(x) (x < 1 || x > 90 ? 20 : x)
 +
 +static int wdt_timeout = 20;
 +#define HEARTBEAT(x) (x < 1 || x > 90 ? 20 : x)
 +
 +static int wdt_timeout = 20;
-+static int started = 0;
-+static int in_use = 0;
++static int started;
++static int in_use;
 +
 +static void
 +ar2315_wdt_enable(void)
 +
 +static void
 +ar2315_wdt_enable(void)
index 35344ca73aefc9648b56df5278fe6fe379dbb4f8..58cccd0e325dd839417003e590f90f17f3954cb4 100644 (file)
@@ -4,7 +4,7 @@
  static int ar231x_mdiobus_reset(struct mii_bus *bus);
  static int ar231x_mdiobus_probe (struct net_device *dev);
  static void ar231x_adjust_link(struct net_device *dev);
  static int ar231x_mdiobus_reset(struct mii_bus *bus);
  static int ar231x_mdiobus_probe (struct net_device *dev);
  static void ar231x_adjust_link(struct net_device *dev);
-+static bool no_phy = false;
++static bool no_phy;
  
  #ifndef ERR
  #define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
  
  #ifndef ERR
  #define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)