Skip to contentSkip to conversation

Staging: dgap: Remove unnecessary test expression

PATCH New Shivani Bhardwaj 1 participant 1 message Oct 16, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: dgap: Remove unnecessary test expression

struct bd is already NULL tested so, any further NULL checks should be removed.

---
 drivers/staging/dgap/dgap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgap/dgap.c +1 -1
index aa3aa72..ca64126 100644
@@ -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);
Signature · 1 line
2.1.0