summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2015-09-21 14:17:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 20:38:45 +0300
commit83ce95ef5efba06e5201c31064d11069bfdb87a0 (patch)
tree6d282d9c587e0244ef04472a139c40bb54705c71 /drivers/tty
parent1edb3cf21f4b0be2a5d9577d4913eb9a3131cd16 (diff)
downloadlinux-83ce95ef5efba06e5201c31064d11069bfdb87a0.tar.xz
serial: 8250_dw: cleanup dw8250_idma_filter
Remove the extra return. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_dw.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index f4c5bd6fade1..db67dd001b0d 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -294,12 +294,7 @@ static void dw8250_setup_port(struct uart_8250_port *up)
static bool dw8250_idma_filter(struct dma_chan *chan, void *param)
{
- struct device *dev = param;
-
- if (dev != chan->device->dev->parent)
- return false;
-
- return true;
+ return param == chan->device->dev->parent;
}
static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data)