Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc6bbc99 authored by Tobias Klauser's avatar Tobias Klauser Committed by David Brown
Browse files

msm_serial: Remove redundant unlikely()



IS_ERR() already implies unlikely(), so it can be omitted here.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
parent 33069739
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -686,7 +686,7 @@ static int __init msm_serial_probe(struct platform_device *pdev)
	msm_port = UART_TO_MSM(port);
	msm_port = UART_TO_MSM(port);


	msm_port->clk = clk_get(&pdev->dev, "uart_clk");
	msm_port->clk = clk_get(&pdev->dev, "uart_clk");
	if (unlikely(IS_ERR(msm_port->clk)))
	if (IS_ERR(msm_port->clk))
		return PTR_ERR(msm_port->clk);
		return PTR_ERR(msm_port->clk);
	port->uartclk = clk_get_rate(msm_port->clk);
	port->uartclk = clk_get_rate(msm_port->clk);
	printk(KERN_INFO "uartclk = %d\n", port->uartclk);
	printk(KERN_INFO "uartclk = %d\n", port->uartclk);