Browse Source

iucv: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Wei Yongjun 16 năm trước cách đây
mục cha
commit
47a30b26e5
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      net/iucv/af_iucv.c

+ 1 - 2
net/iucv/af_iucv.c

@@ -1171,8 +1171,7 @@ static void iucv_callback_txdone(struct iucv_path *path,
 
 
 		spin_unlock_irqrestore(&list->lock, flags);
 		spin_unlock_irqrestore(&list->lock, flags);
 
 
-		if (this)
-			kfree_skb(this);
+		kfree_skb(this);
 	}
 	}
 	BUG_ON(!this);
 	BUG_ON(!this);