Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfa30ac1 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman
Browse files

staging: dgap: remove redundant error value check



The retval in dgap_block_til_ready() is initialized to zero,
and if no error has occurred in this function, the retval has a zero.
So it doesn't need to check "retval" itself.

Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e86bd61e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2181,10 +2181,7 @@ static int dgap_block_til_ready(struct tty_struct *tty, struct file *file,

	spin_unlock_irqrestore(&ch->ch_lock, lock_flags);

	if (retval)
	return retval;

	return 0;
}

/*