made while/until loop condition check more readable

This commit is contained in:
BVK Chaitanya 2010-01-26 14:33:23 +05:30
parent 2aa1646307
commit b5c5144ab1

View file

@ -323,7 +323,7 @@ grub_script_execute_cmdwhile (struct grub_script_cmd *cmd)
result = 0; result = 0;
do { do {
cond = grub_script_execute_cmd (cmdwhile->cond); cond = grub_script_execute_cmd (cmdwhile->cond);
if ((cmdwhile->until && !cond) || (!cmdwhile->until && cond)) if (cmdwhile->until ? !cond : cond)
break; break;
result = grub_script_execute_cmd (cmdwhile->list); result = grub_script_execute_cmd (cmdwhile->list);