From: Nicholas Clark Date: Thu, 11 Sep 2008 21:46:28 +0000 (+0000) Subject: As stash can't be NULL, no need to check name_stash is not NULL before X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90903f12d8c8bec5cac10a53dad3999617414aed;p=p5sagit%2Fp5-mst-13.2.git As stash can't be NULL, no need to check name_stash is not NULL before comparing the two, as a NULL == NULL comparison can't happen. p4raw-id: //depot/perl@34352 --- diff --git a/universal.c b/universal.c index 3e52535..461eedf 100644 --- a/universal.c +++ b/universal.c @@ -50,7 +50,7 @@ S_isa_lookup(pTHX_ HV *stash, const char * const name) /* A stash/class can go by many names (ie. User == main::User), so we compare the stash itself just in case */ - if (name_stash && ((const HV *)stash == name_stash)) + if ((const HV *)stash == name_stash) return TRUE; hvname = HvNAME_get(stash);