[PATCH] nvidiafb: Remove NULL check
authorAntonino A. Daplas <adaplas@gmail.com>
Mon, 27 Mar 2006 09:17:32 +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 835

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/nvidia/nvidia.c

index c758b386f146fc6cf11b76d98b46a90f08ef4d87..018dd8174c7d1aa105f6ef91008d72aa95bf8371 100644 (file)
@@ -1771,8 +1771,6 @@ static void __exit nvidiafb_remove(struct pci_dev *pd)
        struct nvidia_par *par = info->par;
 
        NVTRACE_ENTER();
-       if (!info)
-               return;
 
        unregister_framebuffer(info);
 #ifdef CONFIG_MTRR