diff mbox

hw/ppc/spapr_rtc: Remove bad class_size value

Message ID 1450429574-31028-1-git-send-email-thuth@redhat.com
State New
Headers show

Commit Message

Thomas Huth Dec. 18, 2015, 9:06 a.m. UTC
class_size = sizeof(XICSStateClass) does not make much sense
in the RTC code and likely was just a copy-n-paste error.
Let's simply remove it.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/ppc/spapr_rtc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Gibson Dec. 21, 2015, 12:47 a.m. UTC | #1
On Fri, Dec 18, 2015 at 10:06:14AM +0100, Thomas Huth wrote:
> class_size = sizeof(XICSStateClass) does not make much sense
> in the RTC code and likely was just a copy-n-paste error.
> Let's simply remove it.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Oops, that's an embarrasing error.  Fix applied to ppc-for-2.5 and ppc-for-2.6

> ---
>  hw/ppc/spapr_rtc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/hw/ppc/spapr_rtc.c b/hw/ppc/spapr_rtc.c
> index 34b27db..b591a8e 100644
> --- a/hw/ppc/spapr_rtc.c
> +++ b/hw/ppc/spapr_rtc.c
> @@ -200,7 +200,6 @@ static const TypeInfo spapr_rtc_info = {
>      .name          = TYPE_SPAPR_RTC,
>      .parent        = TYPE_SYS_BUS_DEVICE,
>      .instance_size = sizeof(sPAPRRTCState),
> -    .class_size = sizeof(XICSStateClass),
>      .class_init    = spapr_rtc_class_init,
>  };
>
diff mbox

Patch

diff --git a/hw/ppc/spapr_rtc.c b/hw/ppc/spapr_rtc.c
index 34b27db..b591a8e 100644
--- a/hw/ppc/spapr_rtc.c
+++ b/hw/ppc/spapr_rtc.c
@@ -200,7 +200,6 @@  static const TypeInfo spapr_rtc_info = {
     .name          = TYPE_SPAPR_RTC,
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(sPAPRRTCState),
-    .class_size = sizeof(XICSStateClass),
     .class_init    = spapr_rtc_class_init,
 };