Commit d1a9c056 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: fix sparse warning in manifest.c

The cport id field is a le16, so treat it as such when comparing it to
something else.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent ec413566
......@@ -256,7 +256,7 @@ static u32 gb_manifest_parse_cports(struct gb_bundle *bundle)
*/
list_for_each_entry(tmp, &list, links) {
desc_cport = tmp->data;
if (cport_id == desc_cport->id) {
if (cport_id == le16_to_cpu(desc_cport->id)) {
dev_err(&bundle->dev,
"duplicate CPort %u found\n",
cport_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment