Skip to content

Commit 4a3e208

Browse files
tangbingregkh
authored andcommitted
tty:serial:mvebu-uart:fix a wrong return
in this place, the function should return a negative value and the PTR_ERR already returns a negative,so return -PTR_ERR() is wrong. Signed-off-by: tangbin <[email protected]> Cc: stable <[email protected]> Acked-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e8c75a3 commit 4a3e208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/mvebu-uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static int mvebu_uart_probe(struct platform_device *pdev)
851851

852852
port->membase = devm_ioremap_resource(&pdev->dev, reg);
853853
if (IS_ERR(port->membase))
854-
return -PTR_ERR(port->membase);
854+
return PTR_ERR(port->membase);
855855

856856
mvuart = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_uart),
857857
GFP_KERNEL);

0 commit comments

Comments
 (0)