Loading...
--- xnu/xnu-517.7.21/iokit/Kernel/IOPMchangeNoteList.cpp
+++ xnu/xnu-792.6.76/iokit/Kernel/IOPMchangeNoteList.cpp
@@ -107,7 +107,7 @@
{
IOPowerConnection *tmp;
- if(tmp = changeNote[firstInList].parent) {
+ if((tmp = changeNote[firstInList].parent)) {
changeNote[firstInList].parent = 0;
tmp->release();
}
@@ -131,7 +131,7 @@
{
IOPowerConnection *tmp;
- if(tmp = changeNote[firstInList].parent) {
+ if((tmp = changeNote[firstInList].parent)) {
changeNote[firstInList].parent = 0;
tmp->release();
}