From: Shivani Bhardwaj Date: Fri, 16 Oct 2015 16:39:57 +0000 (+0530) Subject: Staging: dgap: Remove unnecessary test expression X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=258e7af2954fb68b55fe9253560f6dfaa4896e54;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: dgap: Remove unnecessary test expression struct bd is already NULL tested so, any further NULL checks should be removed. Signed-off-by: Shivani Bhardwaj Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index aa3aa720724c..ca64126618ed 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -2059,7 +2059,7 @@ out: /* * If board is doing interrupts, ACK the interrupt. */ - if (bd && bd->intr_running) + if (bd->intr_running) readb(bd->re_map_port + 2); spin_unlock_irqrestore(&bd->bd_lock, lock_flags);