• Alex Elder's avatar
    net: ipa: clean up header memory validation · ce05a9f3
    Alex Elder authored
    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: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ce05a9f3
ipa_cmd.c 22 KB