Attention is currently required from: jolly.
2 comments:
File src/ipa/libipa/ipad.c:
We now have two loops that somehow interact with each other. The while loop here and the for loop where eim_init is called.
Why not simply return a -EACCES here. And continue without doing anything at where the function is called. I think this would result in simpler code.
File src/ipa/main.c:
Patch Set #1, Line 186: if (forbidden_eim_index == IPA_MAX_FORBIDDEN_IDS) {
I recommend to use >= in those situations. Nothing wrong with ==, but I always think what if a radioactive particle strikes the CPU register that or the memory location where forbidden_eim_index is stored in ;-)
You could also write:
```
if (forbidden_eim_index < IPA_MAX_FORBIDDEN_IDS) {
cfg.forbidden ....
break;
}
printf("Too....
break;
```
I think that would look more elegant.
To view, visit change 43705. To unsubscribe, or for help writing mail filters, visit settings.