s390/qeth: trust non-IP cast type in qeth_l3_fill_header()
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 25 Apr 2019 16:26:01 +0000 (18:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 15:14:06 +0000 (11:14 -0400)
commit14a1b04777b6cc1df50cd0587c5db22badd7f4d7
treed39e180fad8ad1f84264c662b4cb52c7a1ca2d10
parent58aa2491aa615d9618ffc764cc3eaf689053c7a9
s390/qeth: trust non-IP cast type in qeth_l3_fill_header()

When building the L3 HW header for non-IP packets, trust the cast type
that was passed as parameter. qeth_l3_get_cast_type() has most likely
also used h_dest to determine the cast type, so we get the same
result, and can remove that duplicated code.
In the unlikely case that we would get a _different_ cast type, then
that's based off a route lookup and should be considered authoritative.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l3_main.c