Re: [PATCH] tty: serial: samsung_tty: remove set but not used variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23. 04. 21, 11:39, Tian Tao wrote:
The value of 'ret' is not used, so just delete it.

Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxxxxx>
---
  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;

Added by:
commit 57253ccd5831e7e5720c433437775c3e6b7d0c72
Author: Hyunki Koo <hyunki00.koo@xxxxxxxxxxx>
Date:   Wed May 6 17:02:40 2020 +0900

    serial: samsung: 32-bit access for TX/RX hold registers

Hyunki, what was the intention with "ret" here?

  			}
  		}



--
js
suse labs



[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux for Synopsys ARC Processors]    
  • [Linux on Unisoc (RDA Micro) SoCs]     [Linux Actions SoC]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  •   Powered by Linux