Commit 4d7b84d1 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] rivafb: Remove NULL check

Remove unnecessary NULL check, as struct info will never be NULL.

Coverity Bug 836
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent db77ec27
...@@ -2072,8 +2072,6 @@ static void __exit rivafb_remove(struct pci_dev *pd) ...@@ -2072,8 +2072,6 @@ static void __exit rivafb_remove(struct pci_dev *pd)
struct riva_par *par = info->par; struct riva_par *par = info->par;
NVTRACE_ENTER(); NVTRACE_ENTER();
if (!info)
return;
#ifdef CONFIG_FB_RIVA_I2C #ifdef CONFIG_FB_RIVA_I2C
riva_delete_i2c_busses(par); riva_delete_i2c_busses(par);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment