]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mmc: davinci_mmc: Drop dangling variable
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Feb 2024 13:28:18 +0000 (14:28 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Feb 2024 16:43:14 +0000 (17:43 +0100)
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>
drivers/mmc/host/davinci_mmc.c

index c4657730513871ffa561f6ae42bb2593f048bd4d..8bd938919687b73adc30404ce915d7db7d0964ff 100644 (file)
@@ -211,7 +211,6 @@ static void davinci_fifo_data_trans(struct mmc_davinci_host *host,
                                        unsigned int n)
 {
        struct sg_mapping_iter *sgm = &host->sg_miter;
-       size_t sglen;
        u8 *p;
        unsigned int i;
 
@@ -224,7 +223,6 @@ static void davinci_fifo_data_trans(struct mmc_davinci_host *host,
                return;
        }
        p = sgm->addr;
-       sglen = sgm->length;
 
        /* NOTE:  we never transfer more than rw_threshold bytes
         * to/from the fifo here; there's no I/O overlap.