Skip to content

Commit

Permalink
sparse: hdata/iohub: correctly convert endianness
Browse files Browse the repository at this point in the history
hdata/iohub.c:723:22: warning: restricted beint16_t degrades to integer

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
stewartsmith authored and oohal committed Jul 19, 2019
1 parent 352738f commit 4bec3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdata/iohub.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ static void io_parse_slots(const struct HDIF_common_hdr *sp_iohubs, int hub_id)
const struct slot_map_entry *entry;
unsigned int i, count;

if (sp_iohubs->child_count <= CECHUB_CHILD_IOSLOTS)
if (be16_to_cpu(sp_iohubs->child_count) <= CECHUB_CHILD_IOSLOTS)
return;

ioslot_arr = HDIF_child_arr(sp_iohubs, CECHUB_CHILD_IOSLOTS);
Expand Down

0 comments on commit 4bec3e9

Please sign in to comment.