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:
Родитель
fb33cac8dc
Коммит
9f20ecc51b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче