Skip to content

Commit

Permalink
net: ipa: Use correct value for IPA_STATUS_SIZE
Browse files Browse the repository at this point in the history
IPA_STATUS_SIZE was introduced in commit b8dc7d0 as a replacement
for the size of the removed struct ipa_status which had size
sizeof(__le32[8]). Use this value as IPA_STATUS_SIZE.

Fixes: b8dc7d0 ("net: ipa: stop using sizeof(status)")
Signed-off-by: Bert Karwatzki <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
  • Loading branch information
spasswolf authored and Paolo Abeni committed Jun 1, 2023
1 parent 30c6f0b commit be7f801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ipa/ipa_endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ enum ipa_status_field_id {
};

/* Size in bytes of an IPA packet status structure */
#define IPA_STATUS_SIZE sizeof(__le32[4])
#define IPA_STATUS_SIZE sizeof(__le32[8])

/* IPA status structure decoder; looks up field values for a structure */
static u32 ipa_status_extract(struct ipa *ipa, const void *data,
Expand Down

0 comments on commit be7f801

Please sign in to comment.