Commit d930eb4f authored by Conor Dooley's avatar Conor Dooley
Browse files

firmware: microchip: use scope-based cleanup where possible



There's a bunch of structs created and freed every time the mailbox is
used. Move them to use the scope-based cleanup infrastructure to avoid
manually tearing them down. mpfs_auto_update_available() didn't free the
memory that it used (albeit it allocated exactly once during probe) so
that gets moved over too.

Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
parent e277026b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment