dm-pcache: remove unused 'allocated' variable in cache_data_alloc()

The 'allocated' variable is never non-zero when its value is consumed.
'to_alloc' was always equal to key->len, so replace them with key->len
directly.

Signed-off-by: Jianyun Gao <jianyungao89@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
Jianyun Gao 2026-07-17 16:38:56 +08:00 • committed by Mikulas Patocka
commit a46fd918f7