Skip to content

Commit

Permalink
Staging: hv: hv_mouse: fix build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Mar 3, 2011
1 parent 0ce815d commit c4e68fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c4e68fa

Please sign in to comment.