staging: dgnc: simplify a trivial if-return sequence

Signed-off-by: Parshuram Thombare <thombarepr@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Parshuram Thombare 2015-10-10 19:06:44 -04:00 committed by Greg Kroah-Hartman
parent 35e942f316
commit 36e712a8a1

View file

@ -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;
}
/*