]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ipmi: Replace guid_copy() with import_guid() where it makes sense
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Apr 2020 13:03:48 +0000 (16:03 +0300)
committerCorey Minyard <cminyard@mvista.com>
Mon, 18 May 2020 11:32:02 +0000 (06:32 -0500)
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>
drivers/char/ipmi/ipmi_msghandler.c

index 9afd220cd824e9d76adf19772f1b2cc6960f4668..e1b22fe0916cf8c85ab8172e62f53c1bf9307d01 100644 (file)
@@ -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.