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