diff options
| author | Sean Young <sean@mess.org> | 2026-08-12 14:03:10 +0100 |
|---|---|---|
| committer | Sean Young <sean@mess.org> | 2026-09-22 14:50:16 +0100 |
| commit | e4b4aa413cc2e48a261c8c513ced964a3390c0cf (patch) | |
| tree | 1c66c4befc17d2fa464b8c0d099ea22b8108a7d7 /include/media | |
| parent | c6d68866ad8aa1e957a3e5a6ede971148f1e3d59 (diff) | |
media: rc: Replace open coded krealloc() for keymap
Replace open coded krealloc() and remove superfluous member of struct
rc_map - we don't need to track both the size in bytes and entries.
Signed-off-by: Sean Young <sean@mess.org>
Acked-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/rc-map.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/media/rc-map.h b/include/media/rc-map.h index d95ed3e96de2..f167c37179c8 100644 --- a/include/media/rc-map.h +++ b/include/media/rc-map.h @@ -148,7 +148,6 @@ struct rc_map_table { * @scan: pointer to struct &rc_map_table * @size: Max number of entries * @len: Number of entries that are in use - * @alloc: size of \*scan, in bytes * @rc_proto: type of the remote controller protocol, as defined at * enum &rc_proto * @name: name of the key map table @@ -158,7 +157,6 @@ struct rc_map { struct rc_map_table *scan; unsigned int size; unsigned int len; - unsigned int alloc; enum rc_proto rc_proto; const char *name; spinlock_t lock; |
