From patchwork Tue May 12 18:25:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1288692 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=sHEyVSAF; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49M5rd3G6Wz9sSF for ; Wed, 13 May 2020 04:27:45 +1000 (AEST) Received: from localhost ([::1]:40600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYZd1-0002pM-4z for incoming@patchwork.ozlabs.org; Tue, 12 May 2020 14:27:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYZb2-0001E4-PK for qemu-devel@nongnu.org; Tue, 12 May 2020 14:25:40 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:40237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYZb0-0006Tg-EM for qemu-devel@nongnu.org; Tue, 12 May 2020 14:25:40 -0400 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-12.nifty.com with ESMTP id 04CIP3p4002559; Wed, 13 May 2020 03:25:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 04CIP3p4002559 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1589307904; bh=iOgYnLRwrRl2woi4+ET+Ay98zar+c7f4HFz1dCiM8KM=; h=From:To:Cc:Subject:Date:From; b=sHEyVSAFqZuN0p+MgjU5twB48ApRsxYWJl/RSScZHF0tdUNiixCVSuVhUcR+6FpJB fFuG6vQPjxHC7uL5wPOEsaaT8WvQih3OCc1cnQbakzUgRPO/Y7YX7mi8z1Q1R6YxyG v4VAhJnIGCSm6oexve/jBGG5pf3xSg1+0l+xN20rDy59Xlg9yjZrffzHweRVggdIpC F5znlnKc3kJn/DHZQYoV+souuJNCVZ1g9XkY/fkSCYqLIPx7zbO3xhVAnRy6pE2J3s KunNW7a2NTJYsBaKs1YvjJUCvSfFYLMc6vsjCNaULfTuaSirMGu0cqHv4HKOXtcWqx 1bIIdOIYliAag== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: qemu-devel@nongnu.org, Paolo Bonzini , "Daniel P . Berrange" , Eduardo Habkost Subject: [PATCH] qom/object: simplify type_initialize_interface() Date: Wed, 13 May 2020 03:25:01 +0900 Message-Id: <20200512182501.2300530-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: softfail client-ip=210.131.2.79; envelope-from=masahiroy@kernel.org; helo=conuserg-12.nifty.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 13:31:34 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" iface_impl->class is the same as new_iface. Make it more readable. Signed-off-by: Masahiro Yamada --- qom/object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qom/object.c b/qom/object.c index 9d1a918e42..75c628591d 100644 --- a/qom/object.c +++ b/qom/object.c @@ -262,8 +262,7 @@ static void type_initialize_interface(TypeImpl *ti, TypeImpl *interface_type, new_iface->concrete_class = ti->class; new_iface->interface_type = interface_type; - ti->class->interfaces = g_slist_append(ti->class->interfaces, - iface_impl->class); + ti->class->interfaces = g_slist_append(ti->class->interfaces, new_iface); } static void object_property_free(gpointer data)