[Spice-devel] [PATCH qxl-win v3] display/res: substitute CursorCacheRemove false "break" with "return"
Alon Levy
alevy at redhat.com
Thu Jul 7 02:43:30 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 76fc6b7..3f39c06 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