summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_resource.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-04-09 13:07:20 -0500
committerJakub Kicinski <kuba@kernel.org>2021-04-09 20:57:25 -0700
commit74858b63c47cfbacafb26ea9701b26ffa18acd4a (patch)
treead6e1df2e4abbc6b7fc70fbe35c4cb8d4c41646f /drivers/net/ipa/ipa_resource.h
parent077e770f2601e9786331c00aa6f8b02cfdbc7fd9 (diff)
net: ipa: get rid of empty IPA functions
There are place holder functions in the IPA code that do nothing. For the most part these are inverse functions, for example, once the routing or filter tables are set up there is no need to perform any matching teardown activity at shutdown, or in the case of an error. These can be safely removed, resulting in some code simplification. Add comments in these spots making it explicit that there is no inverse. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/ipa_resource.h')
-rw-r--r--drivers/net/ipa/ipa_resource.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/ipa/ipa_resource.h b/drivers/net/ipa/ipa_resource.h
index 9f74036fb95c..ef5818bff180 100644
--- a/drivers/net/ipa/ipa_resource.h
+++ b/drivers/net/ipa/ipa_resource.h
@@ -14,14 +14,10 @@ struct ipa_resource_data;
* @ipa: IPA pointer
* @data: IPA resource configuration data
*
+ * There is no need for a matching ipa_resource_deconfig() function.
+ *
* Return: true if all regions are valid, false otherwise
*/
int ipa_resource_config(struct ipa *ipa, const struct ipa_resource_data *data);
-/**
- * ipa_resource_deconfig() - Inverse of ipa_resource_config()
- * @ipa: IPA pointer
- */
-void ipa_resource_deconfig(struct ipa *ipa);
-
#endif /* _IPA_RESOURCE_H_ */