Skip to contentSkip to conversation

rivafb: Remove NULL check

PATCH In review Antonino A. Daplas 1 participant 1 message Mar 11, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/18 rivafb: Remove NULL check

Remove unnecessary NULL check, as struct info will never be NULL.

Coverity Bug 836

---

 drivers/video/riva/fbdev.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/video/riva/fbdev.c +0 -2
index 6c19ab6..f841f01 100644
@@ -2072,8 +2072,6 @@ static void __exit rivafb_remove(struct 
 	struct riva_par *par = info->par;
 	
 	NVTRACE_ENTER();
-	if (!info)
-		return;
 
 #ifdef CONFIG_FB_RIVA_I2C
 	riva_delete_i2c_busses(par);

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642