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>
This commit is contained in:
Daeseok Youn 2014-08-18 23:31:46 +09:00 committed by Greg Kroah-Hartman
parent fb33cac8dc
commit 9f20ecc51b
1 changed files with 1 additions and 6 deletions

View File

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