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:
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);
|
rc = request_irq(brd->irq, dgap_intr, IRQF_SHARED, "DGAP", brd);
|
||||||
|
|
||||||
if (rc)
|
if (!rc)
|
||||||
brd->intr_used = 0;
|
|
||||||
else
|
|
||||||
brd->intr_used = 1;
|
brd->intr_used = 1;
|
||||||
} else {
|
|
||||||
brd->intr_used = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user