]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hv: channel: match var type to return type of wait_for_completion
authorNicholas Mc Guire <der.herr@hofr.at>
Fri, 27 Feb 2015 19:26:01 +0000 (11:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:30:07 +0000 (19:30 -0800)
return type of wait_for_completion_timeout is unsigned long not int, this
patch changes the type of t from int to unsigned long.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c

index 26dcf268b09343aa498e7b04957607a20de53f61..f6879950e1313ce441bea15e306a99e4a506eb66 100644 (file)
@@ -71,7 +71,8 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
        struct vmbus_channel_msginfo *open_info = NULL;
        void *in, *out;
        unsigned long flags;
-       int ret, t, err = 0;
+       int ret, err = 0;
+       unsigned long t;
 
        spin_lock_irqsave(&newchannel->lock, flags);
        if (newchannel->state == CHANNEL_OPEN_STATE) {