mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 05:22:19 -04:00
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:
committed by
Greg Kroah-Hartman
parent
fb33cac8dc
commit
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user