You're missing an equals sign, it should be
boolean passed = false;
for(int p = 0; passed == false; p++){
//my code...
}
As it is right now, you're not checking the value of passed
on every iteration but instead you're doing an assignment.
Also, be sure to change the value of passed
inside the loop to avoid infinite iterations.