From 6bb2dc02a7cffd6ed7dd28e88d584920a4150749 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Mar 2006 16:01:47 +0000 Subject: [PATCH] Coverity #337: Remove useless NULL check. --- ChangeLog | 3 +++ miext/cw/cw.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 594b5123f..a028ad5fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * hw/xfree86/loader/loadmod.c: Coverity #1053: Nuke a dead variable. + * miext/cw/cw.c: + Coverity #337: Remove useless NULL check. + 2006-03-15 Benjamin Herrenschmidt * hw/xfree86/dri/dri.c: (DRIExtensionInit): diff --git a/miext/cw/cw.c b/miext/cw/cw.c index 9c2ea9677..f60f8cf28 100644 --- a/miext/cw/cw.c +++ b/miext/cw/cw.c @@ -463,7 +463,7 @@ cwPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, int what) DrawablePtr pBackingDrawable; int x_off, y_off, x_screen, y_screen; - while (pWin && pWin->backgroundState == ParentRelative) + while (pWin->backgroundState == ParentRelative) pWin = pWin->parent; pBackingDrawable = cwGetBackingDrawable((DrawablePtr)pWin, &x_off,