net: qualcomm: rmnet: drop some unary NOTs
authorAlex Elder <elder@linaro.org>
Sat, 12 Jun 2021 14:37:35 +0000 (09:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Jun 2021 20:18:49 +0000 (13:18 -0700)
commit411a795e14b1fcbf64bc9ef6869d2bf9a5bf3c9a
tree64a41655ebbd6b7d1833f20a1c82ad8ab02c88ee
parentbe754f6435936e78dafe0ebb9d1e9d52c3bde842
net: qualcomm: rmnet: drop some unary NOTs

We compare a payload checksum with a pseudo checksum value for
equality in rmnet_map_ipv4_dl_csum_trailer().  Both of those values
are computed with a unary NOT (~) operation.  The result of the
comparison is the same if we omit that NOT for both values.

Remove these operations in rmnet_map_ipv6_dl_csum_trailer() also.

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