]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/net/irda/sir_dev.c: remove spin_is_locked()
authorAndi Kleen <ak@linux.intel.com>
Wed, 4 Apr 2012 00:08:25 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:51 +0000 (14:45 +1000)
It's hard to imagine how this spin_is_locked() debugging check is not
totally racy.  Remove it.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/irda/sir_dev.c

index 5039f08f5a5b23cacd0f145cd790a30fce47806e..90a1b3ef5d2ce1e512101157efd3da3929aebd82 100644 (file)
@@ -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);