From: Antonino A. Daplas Date: Mon, 27 Mar 2006 09:17:32 +0000 (-0800) Subject: [PATCH] nvidiafb: Remove NULL check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8ff7727d2a92f8b99cc709b827859da5d3c46a8a;p=linux-beck.git [PATCH] nvidiafb: Remove NULL check Remove unnecessary NULL check, as struct info will never be NULL. Coverity Bug 835 Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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