mmc: core: Fix variable shadowing in mmc_route_rpmb_frames()
[ Upstream commit 072755cc ] Rename the inner 'frm' variable to 'resp_frm' in the write path of mmc_route_rpmb_frames() to avoid shadowing the outer 'frm' variable. The function declares 'frm' at function scope pointing to the request frame, but then redeclares another 'frm' variable inside the write block pointing to the response frame. This shadowing makes the code confusing and error-prone. Using 'resp_frm' for the response frame makes the distinction clear and improves code readability. Fixes: 7852028a ("mmc: block: register RPMB partition with the RPMB subsystem") Reviewed-by:Avri Altman <avri.altman@sandisk.com> Reviewed-by:
Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by:
Bean Huo <beanhuo@micron.com> Signed-off-by:
Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading