[Spice-devel] [PATCH qxl-win] display/res: substitute CursorCacheRemove false "break" with "return"

Alon Levy alevy at redhat.com
Mon Jun 20 03:59:44 PDT 2011


From: Yonit Halperin <yhalperi at redhat.com>

---
 display/res.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/display/res.c b/display/res.c
index e821709..ba69dee 100644
--- a/display/res.c
+++ b/display/res.c
@@ -2887,7 +2887,7 @@ static void CursorCacheRemove(PDev *pdev, InternalCursor *cursor)
                 RingRemove(pdev, &cursor->lru_link);
                 RELEASE_RES(pdev, (Resource *)((UINT8 *)cursor - sizeof(Resource)));
                 pdev->Res->num_cursors--;
-                break;
+                return;
             }
             DEBUG_PRINT((pdev, 0, "%s: unexpected\n", __FUNCTION__));
         }
-- 
1.7.5.2



More information about the Spice-devel mailing list