lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 13 Mar 2015 10:00:12 +0800 From: Peter Hung <hpeter@...il.com> To: gregkh@...uxfoundation.org, jslaby@...e.cz Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, tom_tsai@...tek.com.tw, peter_hong@...tek.com.tw, Peter Hung <hpeter+linux_kernel@...il.com> Subject: [PATCH 1/2] serial: 8250_pci: remove non-used var for F81504 Remove pci_fintek_setup() non-used var with calculation ciobase Signed-off-by: Peter Hung <hpeter+linux_kernel@...il.com> --- drivers/tty/serial/8250/8250_pci.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 892eb32..701b7b1 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -1550,9 +1550,7 @@ static int pci_fintek_setup(struct serial_private *priv, struct uart_8250_port *port, int idx) { struct pci_dev *pdev = priv->dev; - unsigned long base; unsigned long iobase; - unsigned long ciobase = 0; u8 config_base; u32 bar_data[3]; @@ -1601,11 +1599,6 @@ static int pci_fintek_setup(struct serial_private *priv, return -EINVAL; } - if (idx < 4) { - base = pci_resource_start(priv->dev, 3); - ciobase = (int)(base + (0x8 * idx)); - } - /* Get the io address dispatch from the BIOS */ pci_read_config_dword(pdev, 0x24, &bar_data[0]); pci_read_config_dword(pdev, 0x20, &bar_data[1]); @@ -1614,8 +1607,8 @@ static int pci_fintek_setup(struct serial_private *priv, /* Calculate Real IO Port */ iobase = (bar_data[idx/4] & 0xffffffe0) + (idx % 4) * 8; - dev_dbg(&pdev->dev, "%s: idx=%d iobase=0x%lx ciobase=0x%lx config_base=0x%2x\n", - __func__, idx, iobase, ciobase, config_base); + dev_dbg(&pdev->dev, "%s: idx=%d iobase=0x%lx config_base=0x%2x\n", + __func__, idx, iobase, config_base); /* Enable UART I/O port */ pci_write_config_byte(pdev, config_base + 0x00, 0x01); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists