Skip to content

Commit

Permalink
[PATCH] nvidiafb: Remove NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Mar 27, 2006
1 parent 4d7b84d commit 8ff7727
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/video/nvidia/nvidia.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ff7727

Please sign in to comment.