diff options
author | 2021-06-10 14:23:02 -0500 | |
---|---|---|
committer | 2021-06-10 14:50:08 -0700 | |
commit | ce05a9f39607623362aea9147c3dfab7a9f94ccb (patch) | |
tree | 7f13803bd0f6ce300d334532140b0b20e05c7946 /drivers/net/ethernet/intel/ice/ice_controlq.h | |
parent | net: ipa: don't assume mem array indexed by ID (diff) | |
download | linux-dev-ce05a9f39607623362aea9147c3dfab7a9f94ccb.tar.xz linux-dev-ce05a9f39607623362aea9147c3dfab7a9f94ccb.zip |
net: ipa: clean up header memory validation
Do some general cleanup in ipa_cmd_header_valid():
- Delay assigning the mem variable until just before it's used.
- Assign the maximum offset and size values together.
- Improve comments explaining the single range of memory being
made up of a modem portion and an AP portion.
- Record the offset of the combined range in a local variable.
- Do the initial size assignment right after assigning the offset.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_controlq.h')
0 files changed, 0 insertions, 0 deletions