[NET]: Remove explicit initializations of skb->input_dev

Instead, set it in one place, namely the beginning of
netif_receive_skb().

Based upon suggestions from Jamal Hadi Salim.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2005-08-09 19:36:29 -07:00 committed by David S. Miller
parent 0742fd53a3
commit 86e65da9c1
7 changed files with 8 additions and 13 deletions

View file

@ -352,10 +352,10 @@ tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv)
static inline int
tcf_match_indev(struct sk_buff *skb, char *indev)
{
if (0 != indev[0]) {
if (NULL == skb->input_dev)
if (indev[0]) {
if (!skb->input_dev)
return 0;
else if (0 != strcmp(indev, skb->input_dev->name))
if (strcmp(indev, skb->input_dev->name))
return 0;
}