projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cac2f6
)
tty: serial: samsung_tty: remove set but not used variables
author
Tian Tao
<tiantao6@hisilicon.com>
Tue, 27 Apr 2021 00:49:35 +0000
(08:49 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:10:53 +0000
(16:10 +0200)
The value of 'ret' is not used which reported by svace, so just return
instead of break.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link:
https://lore.kernel.org/r/1619484575-26098-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/samsung_tty.c
b/drivers/tty/serial/samsung_tty.c
index
d9e4b67
..
9fbc611
100644
(file)
--- a/
drivers/tty/serial/samsung_tty.c
+++ b/
drivers/tty/serial/samsung_tty.c
@@
-2220,8
+2220,7
@@
static int s3c24xx_serial_probe(struct platform_device *pdev)
default:
dev_warn(&pdev->dev, "unsupported reg-io-width (%d)\n",
prop);
- ret = -EINVAL;
- break;
+ return -EINVAL;
}
}
}