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:
parent
35e942f316
commit
36e712a8a1
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue