From: Heikki Krogerus Date: Mon, 21 Sep 2015 11:17:31 +0000 (+0300) Subject: serial: 8250_dw: cleanup dw8250_idma_filter X-Git-Tag: firefly_0821_release~176^2~803^2~71 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=83ce95ef5efba06e5201c31064d11069bfdb87a0;p=firefly-linux-kernel-4.4.55.git serial: 8250_dw: cleanup dw8250_idma_filter Remove the extra return. Signed-off-by: Heikki Krogerus Reviewed-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- 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)