Commit 878caa96 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Corey Minyard

ipmi: Replace guid_copy() with import_guid() where it makes sense

There is a specific API to treat raw data as GUID, i.e. import_guid().
Use it instead of guid_copy() with explicit casting.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Message-Id: <20200422130348.38749-1-andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 7c47a219
...@@ -3172,7 +3172,7 @@ static void guid_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) ...@@ -3172,7 +3172,7 @@ static void guid_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg)
goto out; goto out;
} }
guid_copy(&bmc->fetch_guid, (guid_t *)(msg->msg.data + 1)); import_guid(&bmc->fetch_guid, msg->msg.data + 1);
/* /*
* Make sure the guid data is available before setting * Make sure the guid data is available before setting
* dyn_guid_set. * dyn_guid_set.
......
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