qom/object: fix 2 comment typos

Also change the misleading definition of macro OBJECT_CLASS_CHECK

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Cao jin 2015-11-03 10:36:42 +08:00 committed by Michael Tokarev
parent 9f503153c7
commit b30d805464
2 changed files with 6 additions and 6 deletions

View file

@ -204,7 +204,7 @@ static bool type_is_ancestor(TypeImpl *type, TypeImpl *target_type)
{
assert(target_type);
/* Check if typename is a direct ancestor of type */
/* Check if target_type is a direct ancestor of type */
while (type) {
if (type == target_type) {
return true;