diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-22 16:03:48 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2020-05-18 06:32:02 -0500 |
commit | 878caa96596963ba2d73393572b02624cd23e4ff (patch) | |
tree | 28e337d7ef954ac40867cac7c9c11afad1c2feb6 /drivers/char/ipmi/ipmi_msghandler.c | |
parent | 7c47a219b95d0e06b5ef5fcc7bad807895015eac (diff) | |
download | linux-stable-878caa96596963ba2d73393572b02624cd23e4ff.tar.gz linux-stable-878caa96596963ba2d73393572b02624cd23e4ff.tar.bz2 linux-stable-878caa96596963ba2d73393572b02624cd23e4ff.zip |
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Message-Id: <20200422130348.38749-1-andriy.shevchenko@linux.intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 9afd220cd824..e1b22fe0916c 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -3172,7 +3172,7 @@ static void guid_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) 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 * dyn_guid_set. |