]> err.no Git - linux-2.6/commitdiff
[PATCH] rivafb: Remove NULL check
authorAntonino A. Daplas <adaplas@gmail.com>
Mon, 27 Mar 2006 09:17:31 +0000 (01:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:56 +0000 (08:44 -0800)
Remove unnecessary NULL check, as struct info will never be NULL.

Coverity Bug 836

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/riva/fbdev.c

index 6c19ab6afb015f8dc371689c1c91f7d1b0f4ba73..f841f013b96f5fa5a8f701e0d475966eff534b62 100644 (file)
@@ -2072,8 +2072,6 @@ static void __exit rivafb_remove(struct pci_dev *pd)
        struct riva_par *par = info->par;
        
        NVTRACE_ENTER();
-       if (!info)
-               return;
 
 #ifdef CONFIG_FB_RIVA_I2C
        riva_delete_i2c_busses(par);