From 6fb5e61afbae235dcabd4552e32ffbcbc29ad8d7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 8 Jan 2010 09:24:18 +0100 Subject: [PATCH] winex11: Remove more superflous NULL checks (Coverity). --- dlls/winex11.drv/palette.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c index a02501f1ddf..cbdf2d152aa 100644 --- a/dlls/winex11.drv/palette.c +++ b/dlls/winex11.drv/palette.c @@ -925,7 +925,7 @@ int X11DRV_PALETTE_ToPhysical( X11DRV_PDEVICE *physDev, COLORREF color ) /* fall through to RGB */ case 0: /* RGB */ - if (physDev && (physDev->depth == 1) ) + if (physDev->depth == 1) { int white = 1; RGBQUAD table[2]; @@ -981,7 +981,7 @@ int X11DRV_PALETTE_ToPhysical( X11DRV_PDEVICE *physDev, COLORREF color ) /* fall through to RGB */ case 0: /* RGB */ - if (physDev && (physDev->depth == 1) ) + if (physDev->depth == 1) { int white = 1; RGBQUAD table[2];