Commit 4d39bb0
committed
ams: remove unused message-size macros
AMS_MESSAGE_SIZE() and AMS_SLOT_SIZE() assumed the message payload was
stored inline after the header, but ams_message_payload.message is a
pointer to a caller-owned buffer (set in ams_helper_prepare_payload) and
the slot only carries the fixed-size struct. The last use of
AMS_MESSAGE_SIZE() was replaced by sizeof(*msg); AMS_SLOT_SIZE() had no
users. Remove both as dead and misleading.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 9d815b4 commit 4d39bb0
2 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| |||
0 commit comments