Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: davinci_mmc: Drop dangling variable

The sg_miter conversion left a dangling unused variable.
Drop it.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402142042.vg0lnLdb-lkp@intel.com/
Fixes: ed01d210fd91 ("mmc: davinci_mmc: Use sg_miter for PIO")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20240215-mmc-fix-davinci-v1-1-a593678ca7bf@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Linus Walleij and committed by
Ulf Hansson
25e69172 4aee1452

-2
-2
drivers/mmc/host/davinci_mmc.c
··· 211 211 unsigned int n) 212 212 { 213 213 struct sg_mapping_iter *sgm = &host->sg_miter; 214 - size_t sglen; 215 214 u8 *p; 216 215 unsigned int i; 217 216 ··· 223 224 return; 224 225 } 225 226 p = sgm->addr; 226 - sglen = sgm->length; 227 227 228 228 /* NOTE: we never transfer more than rw_threshold bytes 229 229 * to/from the fifo here; there's no I/O overlap.