]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: get rid of some local variables
authorAlex Elder <elder@linaro.org>
Fri, 11 Jun 2021 19:05:24 +0000 (14:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 20:37:49 +0000 (13:37 -0700)
commita1a5d4e9169eef6739b7032472dbc6c2a224476b
tree0943e51b73cb32cef2d029a49b8e9390be1d78f3
parent7d6996ea1573eb83f5bd4cfbccaa9ab04534b69e
net: qualcomm: rmnet: get rid of some local variables

The value passed as an argument to rmnet_map_ipv4_ul_csum_header()
is always an IPv4 header.  Rather than using a local variable, just
have the type of the argument reflect the proper type.

In rmnet_map_ipv6_ul_csum_header() things are defined a little
differently, but make the same basic change there.

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