summaryrefslogtreecommitdiff
path: root/drivers/video/nvidia
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-03-27 13:17:32 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 20:44:56 +0400
commit8ff7727d2a92f8b99cc709b827859da5d3c46a8a (patch)
treea58aba862bed89df05f4926da5d364037583db3f /drivers/video/nvidia
parent4d7b84d1cbb213fdfd2b25ffd1217f249ba1d55a (diff)
downloadlinux-8ff7727d2a92f8b99cc709b827859da5d3c46a8a.tar.xz
[PATCH] nvidiafb: Remove NULL check
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>
Diffstat (limited to 'drivers/video/nvidia')
-rw-r--r--drivers/video/nvidia/nvidia.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index c758b386f146..018dd8174c7d 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -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