From: Daeseok Youn Date: Mon, 18 Aug 2014 14:31:46 +0000 (+0900) Subject: staging: dgap: remove redundant setting a variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f20ecc51bc08c1ee9c1ed320ef6ca411eb154c6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 45f20b4a0c14..ff953767014e 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -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; }