qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: [Qemu-devel] [RFC 1/4] qdev: Variable name style fix
Date: Thu, 13 Nov 2014 16:05:18 -0200	[thread overview]
Message-ID: <1415901921-14372-2-git-send-email-ehabkost@redhat.com> (raw)
In-Reply-To: <1415901921-14372-1-git-send-email-ehabkost@redhat.com>

Use 'DeviceClass *dc' instead of 'klass'.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/core/qdev.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 413b413..5c6a109 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -1150,12 +1150,12 @@ static void device_finalize(Object *obj)
 
 static void device_class_base_init(ObjectClass *class, void *data)
 {
-    DeviceClass *klass = DEVICE_CLASS(class);
+    DeviceClass *dc = DEVICE_CLASS(class);
 
     /* We explicitly look up properties in the superclasses,
      * so do not propagate them to the subclasses.
      */
-    klass->props = NULL;
+    dc->props = NULL;
 }
 
 static void device_unparent(Object *obj)
@@ -1204,10 +1204,10 @@ static void device_class_init(ObjectClass *class, void *data)
 
 void device_reset(DeviceState *dev)
 {
-    DeviceClass *klass = DEVICE_GET_CLASS(dev);
+    DeviceClass *dc = DEVICE_GET_CLASS(dev);
 
-    if (klass->reset) {
-        klass->reset(dev);
+    if (dc->reset) {
+        dc->reset(dev);
     }
 }
 
-- 
1.9.3

  reply	other threads:[~2014-11-13 18:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 18:05 [Qemu-devel] [RFC 0/4] qdev: Simplify property registration/walking Eduardo Habkost
2014-11-13 18:05 ` Eduardo Habkost [this message]
2014-11-13 18:05 ` [Qemu-devel] [RFC 2/4] qdev: Wrap DeviceClass.props setting into a function Eduardo Habkost
2014-11-13 18:05 ` [Qemu-devel] [RFC 3/4] qdev: Make DeviceClass.props a linked list Eduardo Habkost
2014-11-13 18:05 ` [Qemu-devel] [RFC 4/4] qdev: Make subclasses inherit properties from superclass Eduardo Habkost
2014-11-14 15:49 ` [Qemu-devel] [RFC 0/4] qdev: Simplify property registration/walking Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415901921-14372-2-git-send-email-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=afaerber@suse.de \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).