mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
9af5ccf323
commit
4873537430
@@ -174,9 +174,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
|
|||||||
enum ipa_endpoint_name name;
|
enum ipa_endpoint_name name;
|
||||||
u32 limit;
|
u32 limit;
|
||||||
|
|
||||||
/* Not sure where this constraint come from... */
|
|
||||||
BUILD_BUG_ON(sizeof(struct ipa_status) % 4);
|
|
||||||
|
|
||||||
if (count > IPA_ENDPOINT_COUNT) {
|
if (count > IPA_ENDPOINT_COUNT) {
|
||||||
dev_err(dev, "too many endpoints specified (%u > %u)\n",
|
dev_err(dev, "too many endpoints specified (%u > %u)\n",
|
||||||
count, IPA_ENDPOINT_COUNT);
|
count, IPA_ENDPOINT_COUNT);
|
||||||
|
Reference in New Issue
Block a user