summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-02-05 23:10:59 +0100
committerJakub Kicinski <kuba@kernel.org>2021-02-06 23:57:19 +0100
commit4873537430e5b6bbfc505a6a7b07a7c5e92ddffc (patch)
tree4001dbeaf89de4fc38cd46b5debcb8809037c3ce /drivers/net/ipa
parentnet: ipa: use a Boolean rather than count when replenishing (diff)
downloadlinux-4873537430e5b6bbfc505a6a7b07a7c5e92ddffc.tar.xz
linux-4873537430e5b6bbfc505a6a7b07a7c5e92ddffc.zip
net: ipa: get rid of status size constraint
There is a build-time check that the packet status structure is a multiple of 4 bytes in size. It's not clear where that constraint comes from, but the structure defines what hardware provides so its definition won't change. Get rid of the check; it adds no value. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa')
-rw-r--r--drivers/net/ipa/ipa_endpoint.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c
index bff5d6ffd118..7209ee3c3124 100644
--- a/drivers/net/ipa/ipa_endpoint.c
+++ b/drivers/net/ipa/ipa_endpoint.c
@@ -174,9 +174,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
enum ipa_endpoint_name name;
u32 limit;
- /* Not sure where this constraint come from... */
- BUILD_BUG_ON(sizeof(struct ipa_status) % 4);
-
if (count > IPA_ENDPOINT_COUNT) {
dev_err(dev, "too many endpoints specified (%u > %u)\n",
count, IPA_ENDPOINT_COUNT);