Fix get_empobjp() not to reject EF_SECTOR

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.
This commit is contained in:
Markus Armbruster 2008-02-23 07:59:10 +01:00
parent e63f38833b
commit 5b7a6af94e

View file

@ -60,8 +60,6 @@ obj_nameof(struct empobj *gp)
struct empobj * struct empobj *
get_empobjp(int type, int id) 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);
} }