Skip to content

Commit

Permalink
net: Replace old style lock initializer
Browse files Browse the repository at this point in the history
SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Gleixner authored and David S. Miller committed Nov 7, 2009
1 parent b622d97 commit d3bcfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/drop_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void send_dm_alert(struct work_struct *unused);
* netlink alerts
*/
static int trace_state = TRACE_OFF;
static spinlock_t trace_state_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(trace_state_lock);

struct per_cpu_dm_data {
struct work_struct dm_alert_work;
Expand Down

0 comments on commit d3bcfef

Please sign in to comment.