summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap/dgap.c
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-08-18 23:32:36 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-30 14:04:58 -0700
commitc643794eb3b57116924eadb40bbc34296b49d401 (patch)
tree81b15b33da4066516861e6d03175f7b4cb940cfb /drivers/staging/dgap/dgap.c
parent9f20ecc51bc08c1ee9c1ed320ef6ca411eb154c6 (diff)
downloadlinux-c643794eb3b57116924eadb40bbc34296b49d401.tar.bz2
staging: dgap: remove useless a variable within board_t
The use_interrupts is used only in dagp_request_irq() for checking a value from user config file. It doesn't need in board_t struct. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap/dgap.c')
-rw-r--r--drivers/staging/dgap/dgap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index ff953767014e..8929dbf912b9 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -837,12 +837,10 @@ static int dgap_request_irq(struct board_t *brd)
if (!brd || brd->magic != DGAP_BOARD_MAGIC)
return -ENODEV;
- brd->use_interrupts = dgap_config_get_useintr(brd);
-
/*
* Set up our interrupt handler if we are set to do interrupts.
*/
- if (brd->use_interrupts && brd->irq) {
+ if (dgap_config_get_useintr(brd) && brd->irq) {
rc = request_irq(brd->irq, dgap_intr, IRQF_SHARED, "DGAP", brd);