fw_cfg: fix sparse warning reading FW_CFG_ID
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 28 Feb 2018 15:06:07 +0000 (16:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 01:17:38 +0000 (03:17 +0200)
commitf295c8dba71841f007e2154143109d1517670a08
tree86e6993d59f2067799588dcca915c08858d27136
parentd174ea7d38bccb6a10aca036014ec74ea8f73d1c
fw_cfg: fix sparse warning reading FW_CFG_ID

Use a restricted type for reading FW_CFG_ID, fixing sparse warning:

drivers/firmware/qemu_fw_cfg.c:540:22: warning: cast to restricted __le32

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/firmware/qemu_fw_cfg.c