msm_serial: Remove redundant unlikely()
Subsystems (2)
PATCH 1/1 msm_serial: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted here.
Signed-off-by Tobias Klauser <[email protected]>
--- drivers/serial/msm_serial.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/msm_serial.c +1 -1
@@ -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);
Signature · 1 line
1.7.0.4
Quoted 3 lines · Tobias Klauser
IS_ERR()already impliesunlikely(), so it can be omitted here.Signed-off-by Tobias Klauser <[email protected]>
Acked-by David Brown <[email protected]>
Quoted 19 lines
drivers/serial/msm_serial.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/serial/msm_serial.c +1
-1@@ -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);Signature · 1 line
1.7.0.4
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.