From 36e712a8a14d336a2f6433f64a8e2bb974138aec Mon Sep 17 00:00:00 2001 From: Parshuram Thombare Date: Sat, 10 Oct 2015 19:06:44 -0400 Subject: [PATCH] staging: dgnc: simplify a trivial if-return sequence Signed-off-by: Parshuram Thombare Signed-off-by: Greg Kroah-Hartman --- drivers/staging/dgnc/dgnc_tty.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 8489e5a1dae8..4ac9092da392 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -1336,10 +1336,7 @@ static int dgnc_block_til_ready(struct tty_struct *tty, spin_unlock_irqrestore(&ch->ch_lock, flags); - if (retval) - return retval; - - return 0; + return retval; } /* -- 2.20.1