Skip to content

Commit

Permalink
s390x: remove double compat statement
Browse files Browse the repository at this point in the history
We chain our compat handler via the CCW_COMPAT macros and via the
class_init function. (e.g. ccw_machine_2_7_class_options calls
ccw_machine_2_8_class_options). As all class_init functions in that
chain call SET_MACHINE_COMPAT for their compat settings, and
SET_MACHINE_COMPAT will append there is no need to do that again.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
  • Loading branch information
borntraeger authored and cohuck committed Jan 20, 2017
1 parent 0f6bcf6 commit 765cca0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/s390x/s390-virtio-ccw.c
Expand Up @@ -339,7 +339,6 @@ static const TypeInfo ccw_machine_info = {
HW_COMPAT_2_7

#define CCW_COMPAT_2_6 \
CCW_COMPAT_2_7 \
HW_COMPAT_2_6 \
{\
.driver = TYPE_S390_IPL,\
Expand All @@ -352,7 +351,6 @@ static const TypeInfo ccw_machine_info = {
},

#define CCW_COMPAT_2_5 \
CCW_COMPAT_2_6 \
HW_COMPAT_2_5

#define CCW_COMPAT_2_4 \
Expand Down

0 comments on commit 765cca0

Please sign in to comment.