summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e63f388)
There's no technical reason for rejecting sector access by id. It's
unusual, but not wrong.
Also remove the superfluous test for EF_BAD; ef_ptr() covers that.
struct empobj *
get_empobjp(int type, int id)
{
struct empobj *
get_empobjp(int type, int id)
{
- if (CANT_HAPPEN(type == EF_SECTOR || type == EF_BAD))
- return NULL;
return ef_ptr(type, id);
}
return ef_ptr(type, id);
}