am 95b9a0b6: am e835976d: Merge "Tone down a fatal assert" into jb-mr1-dev

* commit '95b9a0b688eab5a3c0c1fadb71e258e93e4c344c':
  Tone down a fatal assert
This commit is contained in:
Mathias Agopian 2012-10-04 20:34:46 -07:00 committed by Android Git Automerger
commit 8b2a88bad1

View File

@ -686,8 +686,11 @@ status_t HWComposer::acquire(int disp) {
}
void HWComposer::disconnectDisplay(int disp) {
LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY ||
disp >= HWC_NUM_DISPLAY_TYPES);
LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY);
if (disp >= HWC_NUM_DISPLAY_TYPES) {
// nothing to do for these yet
return;
}
DisplayData& dd(mDisplayData[disp]);
if (dd.list != NULL) {
free(dd.list);