From 06c428bcd4413014b43236e77765022071424fa6 Mon Sep 17 00:00:00 2001 From: Dave Liu Date: Mon, 14 Jan 2008 11:12:01 +0800 Subject: QE: fix compile warning qe.c: In function 'qe_upload_firmware': qe.c:390: warning: pointer targets in passing argument 2 uec.c: In function 'uec_initialize': uec.c:1236: warning: 'uec_info' may be used uninitialized Signed-off-by: Dave Liu --- drivers/qe/qe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/qe/qe.c') diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index c802014a50..63acfa3d15 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -387,7 +387,7 @@ int qe_upload_firmware(const struct qe_firmware *firmware) * saved microcode information and put in the new. */ memset(&qe_firmware_info, 0, sizeof(qe_firmware_info)); - strcpy(qe_firmware_info.id, firmware->id); + strcpy(qe_firmware_info.id, (char *)firmware->id); qe_firmware_info.extended_modes = firmware->extended_modes; memcpy(qe_firmware_info.vtraps, firmware->vtraps, sizeof(firmware->vtraps)); -- cgit v1.2.3