Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Antonino A. Daplas and committed by
Linus Torvalds
8ff7727d 4d7b84d1

-2
-2
drivers/video/nvidia/nvidia.c
··· 1771 1771 struct nvidia_par *par = info->par; 1772 1772 1773 1773 NVTRACE_ENTER(); 1774 - if (!info) 1775 - return; 1776 1774 1777 1775 unregister_framebuffer(info); 1778 1776 #ifdef CONFIG_MTRR