RE: [PATCH] mmc: core: sd: Remove unused buffer allocation in sd_enable_cache()
From: Avri Altman
Date: Tue Jun 02 2026 - 06:02:50 EST
> sd_enable_cache() allocates a 512-byte buffer that is never used.
> sd_write_ext_reg() allocates its own internal buffer, and no read-back verification
> is done in this function. Remove the unnecessary allocation.
>
> Fixes: 130206a615a9 ("mmc: core: Add support for cache ctrl for SD cards")
> Signed-off-by: Chanwoo Lee <cw9316.lee@xxxxxxxxxxx>
Reviewed-by: Avri Altman <avri.altman@xxxxxxxxxxx>