Skip to content

Commit

Permalink
msm_serial: Remove redundant unlikely()
Browse files Browse the repository at this point in the history
IS_ERR() already implies unlikely(), so it can be omitted here.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David Brown <davidb@codeaurora.org>
  • Loading branch information
Tobias Klauser authored and David Brown committed Dec 9, 2010
1 parent 3306973 commit dc6bbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ static int __init msm_serial_probe(struct platform_device *pdev)
msm_port = UART_TO_MSM(port);

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);
port->uartclk = clk_get_rate(msm_port->clk);
printk(KERN_INFO "uartclk = %d\n", port->uartclk);
Expand Down

0 comments on commit dc6bbc9

Please sign in to comment.