diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-08-18 23:31:46 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-30 14:04:58 -0700 |
commit | 9f20ecc51bc08c1ee9c1ed320ef6ca411eb154c6 (patch) | |
tree | c51a3d32e10cf00d79d0160a14926da510e44d69 | |
parent | fb33cac8dc3d1f64bba3beff0f8b64814f7f9485 (diff) |
staging: dgap: remove redundant setting a variable
The brd(board_t) is initialized with zero, so "intr_used"
is not needed to set zero when request_irq() is failed.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/dgap/dgap.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 45f20b4a0c14..ff953767014e 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -846,14 +846,9 @@ static int dgap_request_irq(struct board_t *brd) rc = request_irq(brd->irq, dgap_intr, IRQF_SHARED, "DGAP", brd); - if (rc) - brd->intr_used = 0; - else + if (!rc) brd->intr_used = 1; - } else { - brd->intr_used = 0; } - return 0; } |