projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d7b84d
)
[PATCH] nvidiafb: Remove NULL check
author
Antonino A. Daplas
<adaplas@gmail.com>
Mon, 27 Mar 2006 09:17:32 +0000
(
01:17
-0800)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/nvidia/nvidia.c
b/drivers/video/nvidia/nvidia.c
index c758b386f146fc6cf11b76d98b46a90f08ef4d87..018dd8174c7d1aa105f6ef91008d72aa95bf8371 100644
(file)
--- 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