Merge "hwc: Do not show animation on External display."
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index 22667bf..9dcb439 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -408,7 +408,7 @@
 
         if (display_commit(ctx, dpy) < 0) {
             ALOGE("%s: display commit fail!", __FUNCTION__);
-            return -1;
+            ret = -1;
         }
     }