mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
can: gw: remove obsolete checks
In commit be286bafe1 ("can: gw: add a variable
limit for CAN frame routings") the detection of the frame routing has been
changed. The former solution required dev->header_ops to be unused (== NULL).
I missed to remove the obsolete checks in the original commit - so here it is.
Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
This commit is contained in:
parent
ac7686b969
commit
c0ebbdd6b5
1 changed files with 2 additions and 4 deletions
|
|
@ -844,8 +844,7 @@ static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|||
if (!gwj->src.dev)
|
||||
goto out;
|
||||
|
||||
/* check for CAN netdev not using header_ops - see gw_rcv() */
|
||||
if (gwj->src.dev->type != ARPHRD_CAN || gwj->src.dev->header_ops)
|
||||
if (gwj->src.dev->type != ARPHRD_CAN)
|
||||
goto put_src_out;
|
||||
|
||||
gwj->dst.dev = dev_get_by_index(&init_net, gwj->ccgw.dst_idx);
|
||||
|
|
@ -853,8 +852,7 @@ static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|||
if (!gwj->dst.dev)
|
||||
goto put_src_out;
|
||||
|
||||
/* check for CAN netdev not using header_ops - see gw_rcv() */
|
||||
if (gwj->dst.dev->type != ARPHRD_CAN || gwj->dst.dev->header_ops)
|
||||
if (gwj->dst.dev->type != ARPHRD_CAN)
|
||||
goto put_src_dst_out;
|
||||
|
||||
gwj->limit_hops = limhops;
|
||||
|
|
|
|||
Loading…
Reference in a new issue