Skip to content

Commit

Permalink
hv: fix return type of hv_post_message()
Browse files Browse the repository at this point in the history
This function returns negative error codes, but because the type is u16
they get truncated into positive numbers.  It doesn't look like the
callers care, but we should fix it anyway as a cleanup.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 9, 2012
1 parent 0034102 commit 415f0a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void hv_cleanup(void)
*
* This involves a hypercall.
*/
u16 hv_post_message(union hv_connection_id connection_id,
int hv_post_message(union hv_connection_id connection_id,
enum hv_message_type message_type,
void *payload, size_t payload_size)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ extern int hv_init(void);

extern void hv_cleanup(void);

extern u16 hv_post_message(union hv_connection_id connection_id,
extern int hv_post_message(union hv_connection_id connection_id,
enum hv_message_type message_type,
void *payload, size_t payload_size);

Expand Down

0 comments on commit 415f0a0

Please sign in to comment.