mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
[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:
parent
0742fd53a3
commit
86e65da9c1
7 changed files with 8 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue