From: Janusz Sobczak Date: Mon, 9 Aug 2010 11:21:36 +0000 (+0200) Subject: gpu: pvr: Remove needless NULL check in PVRSRVWrapExtMemoryKM. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c8f442ef55871e53ab4afb796c3dccb4206ebab;p=sgx.git gpu: pvr: Remove needless NULL check in PVRSRVWrapExtMemoryKM. Signed-off-by: Janusz Sobczak Signed-off-by: Imre Deak --- 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) {