]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
EDAC: i5100_edac: get rid of an unused var
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 13 Sep 2019 13:59:39 +0000 (10:59 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 30 Sep 2019 18:41:54 +0000 (15:41 -0300)
As reported by GCC with W=1:

drivers/edac/i5100_edac.c:714:16: warning: variable ‘et’ set but not used [-Wunused-but-set-variable]
  714 |  unsigned long et;
      |                ^~

It sounds some left over from some code before the addition of
an udelay().

Acked-by: Borislav Petkov <bp@alien8.de>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/edac/i5100_edac.c

index 251f2b692785d8729d2c48e35a663dacffdadf4e..12bebecb203bda114a3c9c918fed7c4713f41297 100644 (file)
@@ -713,7 +713,6 @@ static int i5100_read_spd_byte(const struct mem_ctl_info *mci,
 {
        struct i5100_priv *priv = mci->pvt_info;
        u16 w;
-       unsigned long et;
 
        pci_read_config_word(priv->mc, I5100_SPDDATA, &w);
        if (i5100_spddata_busy(w))
@@ -724,7 +723,6 @@ static int i5100_read_spd_byte(const struct mem_ctl_info *mci,
                                                   0, 0));
 
        /* wait up to 100ms */
-       et = jiffies + HZ / 10;
        udelay(100);
        while (1) {
                pci_read_config_word(priv->mc, I5100_SPDDATA, &w);