diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:17:42 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:17:42 +0000 |
commit | 386a23551597205371d541080645bda02ab5b35f (patch) | |
tree | d79259dd2bbc6153665ce9857f30b237c60609cd /drivers/dahdi/xpp/xbus-pcm.c | |
parent | d95c7702f7ca7bacad21b890724964072139260d (diff) |
xpp: style - Remove 0/NULL static initializers
* Applied via:
perl -pi -e 's/(\bstatic\b[^=]*?)\s*=\s*(0|NULL)\s*;/$1;/' "$@"
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10423 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xbus-pcm.c')
-rw-r--r-- | drivers/dahdi/xpp/xbus-pcm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dahdi/xpp/xbus-pcm.c b/drivers/dahdi/xpp/xbus-pcm.c index 4a00c55..9b51011 100644 --- a/drivers/dahdi/xpp/xbus-pcm.c +++ b/drivers/dahdi/xpp/xbus-pcm.c @@ -54,10 +54,10 @@ static struct xpp_ticker dahdi_ticker; * The ref_ticker points to the current referece tick source. * I.e: one of our AB or dahdi_ticker */ -static struct xpp_ticker *ref_ticker = NULL; +static struct xpp_ticker *ref_ticker; static DEFINE_SPINLOCK(ref_ticker_lock); static DEFINE_SPINLOCK(elect_syncer_lock); -static bool force_dahdi_sync = 0; /* from /sys/bus/astribanks/drivers/xppdrv/sync */ +static bool force_dahdi_sync; /* from /sys/bus/astribanks/drivers/xppdrv/sync */ static xbus_t *global_ticker; static struct xpp_ticker global_ticks_series; @@ -80,7 +80,7 @@ static struct xpp_ticker global_ticks_series; #define SYNC_ADJ_SLOW 10000 #ifdef DAHDI_SYNC_TICK -static unsigned int dahdi_tick_count = 0; +static unsigned int dahdi_tick_count; #endif /*------------------------- SYNC Handling --------------------------*/ @@ -795,7 +795,7 @@ static bool pcm_valid(xpd_t *xpd, xpacket_t *pack) /* FRAMES: include opcode in calculation */ good_len = RPACKET_HEADERSIZE + sizeof(xpp_line_t) + count * 8; if(XPACKET_LEN(pack) != good_len) { - static int rate_limit = 0; + static int rate_limit; XPD_COUNTER(xpd, RECV_ERRORS)++; if((rate_limit++ % 1000) <= 10) { |