]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgap: remove redundant error value check
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 15 Jul 2014 09:47:11 +0000 (18:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jul 2014 15:26:29 +0000 (08:26 -0700)
commit0119ea8b48ac6c8d337a8f5a6564c1b01b2da12b
tree1aa76f703b3858ae26526071c1a89c7def39a748
parent14a74fee9e90b636a7f8fecf62e99e8813f6ed40
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: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c