From: Parshuram Thombare Date: Sat, 10 Oct 2015 23:06:44 +0000 (-0400) Subject: staging: dgnc: simplify a trivial if-return sequence X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36e712a8a14d336a2f6433f64a8e2bb974138aec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: dgnc: simplify a trivial if-return sequence Signed-off-by: Parshuram Thombare Signed-off-by: Greg Kroah-Hartman --- 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; } /*