Staging: hv: hv_mouse: fix build warning
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Mar 2011 03:08:05 +0000 (19:08 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Mar 2011 03:08:05 +0000 (19:08 -0800)
The trans_id variable (u64) was being incorrectly cast to a unsigned
long * when it should have just been unsigned long.

Fun with pointers, what a fricken mess, we need some real type safety
for these types of fields somehow...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/hv_mouse.c

index b7e75e023cd8576b3b6a5bb004eea38a7106911f..49c0ad7108164d3fd1f83849d0d47334e463f4d8 100644 (file)
@@ -330,7 +330,7 @@ static void MousevscOnSendCompletion(struct hv_device *Device, struct vmpacket_d
                return;
        }
 
-       request = (void *)(unsigned long *)Packet->trans_id;
+       request = (void *)(unsigned long)Packet->trans_id;
 
        if (request == &inputDevice->ProtocolReq) {
                /* FIXME */