]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: remove unneeded code
authorAlex Elder <elder@linaro.org>
Sat, 12 Jun 2021 14:37:33 +0000 (09:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Jun 2021 20:18:48 +0000 (13:18 -0700)
commit350c00c21de4c3410759a03e7bc0e2e11769699a
tree8f052429509a0971d271df4df2812e5d76aadfbb
parentf6bb425644f35ef9e8b3437948b5f5f5965e0aad
net: qualcomm: rmnet: remove unneeded code

The previous patch makes rmnet_map_ipv4_dl_csum_trailer() return
early with an error if it is determined that the computed checksum
for the IP payload does not match what was expected.

If the computed checksum *does* match the expected value, the IP
payload (i.e., the transport message), can be considered good.
There is no need to do any further processing of the message.

This means a big block of code is unnecessary for validating the
transport checksum value, and can be removed.

Make comparable changes in rmnet_map_ipv6_dl_csum_trailer().

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c