Skip to content

Commit 0fa57a5

Browse files
modules: storage: Remove unused memory slab
Remove the unused memory slabs from the storage_data struct, and its alocation. Signed-off-by: Trond F. Christiansen <trond.christiansen@nordicsemi.no>
1 parent 5966490 commit 0fa57a5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/src/modules/storage/storage_data_types.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ struct storage_data {
177177
*/
178178
size_t data_size;
179179

180-
/* Pointer to the memory slab for this data type */
181-
struct k_mem_slab *slab;
182-
183180
/**
184181
* @brief Function to determine if a message should be stored
185182
*
@@ -260,18 +257,13 @@ struct storage_data {
260257
_extract_fn(m, (_data_type *)data); \
261258
} \
262259
\
263-
K_MEM_SLAB_DEFINE_STATIC(_name ## _slab, \
264-
sizeof(_data_type), \
265-
CONFIG_APP_STORAGE_MAX_RECORDS_PER_TYPE, 4); \
266-
\
267260
STRUCT_SECTION_ITERABLE(storage_data, _STORAGE_TYPE_NAME(_name)) = { \
268261
.name = #_name, \
269262
.chan = &_chan, \
270263
.data_type = STORAGE_DATA_TYPE(_name), \
271264
.data_size = sizeof(_data_type), \
272265
.should_store = _name ## _should_store, \
273266
.extract_data = _name ## _extract_data, \
274-
.slab = &_name ## _slab, \
275267
};
276268

277269
#endif /* _STORAGE_DATA_TYPES_H_ */

0 commit comments

Comments
 (0)