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

Alon Levy alevy at redhat.com
Wed Jul 6 05:34:54 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 3c24f6c..08ab537 100644
--- a/display/res.c
+++ b/display/res.c
@@ -2888,7 +2888,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.4



More information about the Spice-devel mailing list