From: Andy Shevchenko Date: Wed, 22 Apr 2020 13:03:48 +0000 (+0300) Subject: ipmi: Replace guid_copy() with import_guid() where it makes sense X-Git-Tag: v5.8-rc1~129^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=878caa96596963ba2d73393572b02624cd23e4ff;p=thirdparty%2Fkernel%2Flinux.git 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 Message-Id: <20200422130348.38749-1-andriy.shevchenko@linux.intel.com> Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 9afd220cd824e..e1b22fe0916cf 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.