linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty: serial: samsung_tty: remove set but not used variables
@ 2021-04-23  9:39 Tian Tao
  2021-04-23  9:47 ` Greg KH
  2021-04-23  9:55 ` Jiri Slaby
  0 siblings, 2 replies; 8+ messages in thread
From: Tian Tao @ 2021-04-23  9:39 UTC (permalink / raw)
  To: gregkh, jirislaby; +Cc: linux-samsung-soc, linux-serial, Tian Tao

The value of 'ret' is not used, so just delete it.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/tty/serial/samsung_tty.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
index d9e4b67..d269d75 100644
--- a/drivers/tty/serial/samsung_tty.c
+++ b/drivers/tty/serial/samsung_tty.c
@@ -2220,7 +2220,6 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
 			default:
 				dev_warn(&pdev->dev, "unsupported reg-io-width (%d)\n",
 						prop);
-				ret = -EINVAL;
 				break;
 			}
 		}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-26  6:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-23  9:39 [PATCH] tty: serial: samsung_tty: remove set but not used variables Tian Tao
2021-04-23  9:47 ` Greg KH
2021-04-23  9:54   ` tiantao (H)
2021-04-23 10:14     ` Greg KH
2021-04-26  6:45       ` Krzysztof Kozlowski
2021-04-26  6:56         ` Greg KH
2021-04-26  6:57           ` Krzysztof Kozlowski
2021-04-23  9:55 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).