From 8c8f442ef55871e53ab4afb796c3dccb4206ebab Mon Sep 17 00:00:00 2001 From: Janusz Sobczak Date: Mon, 9 Aug 2010 13:21:36 +0200 Subject: [PATCH] gpu: pvr: Remove needless NULL check in PVRSRVWrapExtMemoryKM. Signed-off-by: Janusz Sobczak Signed-off-by: Imre Deak --- pvr/devicemem.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pvr/devicemem.c b/pvr/devicemem.c index 72ebe6b..0fcd2e4 100644 --- a/pvr/devicemem.c +++ b/pvr/devicemem.c @@ -833,11 +833,8 @@ enum PVRSRV_ERROR PVRSRVWrapExtMemoryKM(void *hDevCookie, return PVRSRV_OK; ErrorExitPhase4: - if (psMemInfo) { - FreeDeviceMem(psMemInfo); - - psMemInfo = NULL; - } + FreeDeviceMem(psMemInfo); + psMemInfo = NULL; ErrorExitPhase3: if (psMemInfo) { -- 2.47.2