diff mbox series

qdev: fix a typo in comment

Message ID 1536130141-2742-1-git-send-email-liq3ea@gmail.com (mailing list archive)
State New, archived
Headers show
Series qdev: fix a typo in comment | expand

Commit Message

Li Qiang Sept. 5, 2018, 6:49 a.m. UTC
Found by reading code.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
---
 hw/core/qdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Markus Armbruster Sept. 20, 2018, 6 p.m. UTC | #1
Could be merged via qemu-trivial (cc'ed).

Li Qiang <liq3ea@gmail.com> writes:

> Found by reading code.
>
> Signed-off-by: Li Qiang <liq3ea@gmail.com>
> ---
>  hw/core/qdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/core/qdev.c b/hw/core/qdev.c
> index 529b82de18..7e4bfcb8f7 100644
> --- a/hw/core/qdev.c
> +++ b/hw/core/qdev.c
> @@ -643,7 +643,7 @@ static void qdev_get_legacy_property(Object *obj, Visitor *v,
>   * the string depends on the property type.  Legacy properties are only
>   * needed for "info qtree".
>   *
> - * Do not use this is new code!  QOM Properties added through this interface
> + * Do not use this in new code!  QOM Properties added through this interface
>   * will be given names in the "legacy" namespace.
>   */
>  static void qdev_property_add_legacy(DeviceState *dev, Property *prop,
diff mbox series

Patch

diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 529b82de18..7e4bfcb8f7 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -643,7 +643,7 @@  static void qdev_get_legacy_property(Object *obj, Visitor *v,
  * the string depends on the property type.  Legacy properties are only
  * needed for "info qtree".
  *
- * Do not use this is new code!  QOM Properties added through this interface
+ * Do not use this in new code!  QOM Properties added through this interface
  * will be given names in the "legacy" namespace.
  */
 static void qdev_property_add_legacy(DeviceState *dev, Property *prop,