Since commit
74daa597e74 ("gdb: add all_objfiles_removed observer"), the
objfile passed to the free_objfile observable can't be nullptr.
Change-Id: If215aa051ab43c068b11746938022c7efca09caa
Approved-By: Andrew Burgess <aburgess@redhat.com>
static void
remove_user_added_objfile (struct objfile *objfile)
{
- if (objfile != 0 && objfile->flags & OBJF_USERLOADED)
+ if (objfile->flags & OBJF_USERLOADED)
{
for (solib &so : objfile->pspace->solibs ())
if (so.objfile == objfile)