diff options
author | Alex Elder <elder@linaro.org> | 2021-07-26 12:40:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-26 22:38:11 +0100 |
commit | 442d68ebf0927681e9405c3db8e9fafb754cb458 (patch) | |
tree | 2b125c144090bf3d4e960bc1c1024ac206109e1f /drivers/net/ipa/ipa_resource.c | |
parent | 546948bf362541857d4f500705efe08a2fe0bb95 (diff) |
net: ipa: kill the remaining conditional validation code
There are only a few remaining spots that validate IPA code
conditional on whether a symbol is defined at compile time.
The checks are not expensive, so just build them always.
This completes the removal of all CONFIG_VALIDATE/CONFIG_VALIDATION
IPA code.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_resource.c')
-rw-r--r-- | drivers/net/ipa/ipa_resource.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ipa/ipa_resource.c b/drivers/net/ipa/ipa_resource.c index 3b2dc216d3a6..e3da95d69409 100644 --- a/drivers/net/ipa/ipa_resource.c +++ b/drivers/net/ipa/ipa_resource.c @@ -29,7 +29,6 @@ static bool ipa_resource_limits_valid(struct ipa *ipa, const struct ipa_resource_data *data) { -#ifdef IPA_VALIDATION u32 group_count; u32 i; u32 j; @@ -65,7 +64,7 @@ static bool ipa_resource_limits_valid(struct ipa *ipa, if (resource->limits[j].min || resource->limits[j].max) return false; } -#endif /* !IPA_VALIDATION */ + return true; } |