From: Andi Kleen Date: Wed, 25 Apr 2012 01:03:51 +0000 (+1000) Subject: drivers/net/irda/sir_dev.c: remove spin_is_locked() X-Git-Tag: next-20120430~2^2~101 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7992e87db4f970dd5eb094f505a97da1a07b9864;p=karo-tx-linux.git drivers/net/irda/sir_dev.c: remove spin_is_locked() It's hard to imagine how this spin_is_locked() debugging check is not totally racy. Remove it. Signed-off-by: Andi Kleen Cc: Samuel Ortiz Acked-by: David S. Miller Signed-off-by: Andrew Morton --- diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index 5039f08f5a5b..90a1b3ef5d2c 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c @@ -632,11 +632,6 @@ static netdev_tx_t sirdev_hard_xmit(struct sk_buff *skb, /* Init tx buffer*/ dev->tx_buff.data = dev->tx_buff.head; - /* Check problems */ - if(spin_is_locked(&dev->tx_lock)) { - IRDA_DEBUG(3, "%s(), write not completed\n", __func__); - } - /* serialize with write completion */ spin_lock_irqsave(&dev->tx_lock, flags);