net: ipa: pass mem_id to ipa_filter_reset_table()
authorAlex Elder <elder@linaro.org>
Thu, 10 Jun 2021 19:23:03 +0000 (14:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:50:08 +0000 (14:50 -0700)
commit07c525a62a4db207e298064b026b8f3f8da192a6
treeef2b0a20337b1608c99d9b109c5f2e81ffb0f5ca
parentce05a9f39607623362aea9147c3dfab7a9f94ccb
net: ipa: pass mem_id to ipa_filter_reset_table()

Pass a memory region ID rather than the address of a memory region
descriptor to ipa_filter_reset_table(), to simplify callers.

We can eliminate the check for a zero region size in this function
because ipa_table_reset_add() checks that before adding anything to
the transaction.

Note that here and in subsequent commits there is no need to check
whether a memory region exists, because we will have already
verified that during initialization.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_table.c