[PATCH 2/2] tty: remove useless initialization in tty_open

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

 



retval must be zero here, no need to set it to zero explicitly.

Signed-off-by: Yan Hong <clouds.yan@xxxxxxxxx>
---
 drivers/tty/tty_io.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index e278edf..6d90e9b 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -1928,7 +1928,6 @@ retry_open:
 
 	noctty = filp->f_flags & O_NOCTTY;
 	index  = -1;
-	retval = 0;
 
 	mutex_lock(&tty_mutex);
 	/* This is protected by the tty_mutex */
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux