]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
imported patch revert-linux-2.6.18-xen.hg-582.b29a06ba7a5f revert-linux-2.6.18-xen.hg-598.f1d726b984a3
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)
drivers/xen/blktap/blktap.c

index 97bf9648cbe1b05bf0cb2086e7bf3892fab892a2..5b00751dea22a8b2e53cf3867e54d745d8540b99 100644 (file)
@@ -89,7 +89,7 @@ static int mmap_pages = MMAP_PAGES;
 /*Data struct handed back to userspace for tapdisk device to VBD mapping*/
 typedef struct domid_translate {
        unsigned short domid;
-       u32 busid;
+       unsigned short busid;
 } domid_translate_t ;
 
 /*Data struct associated with each of the tapdisk devices*/
@@ -508,13 +508,6 @@ void signal_tapdisk(int idx)
        tap_blkif_t *info;
        struct task_struct *ptask;
 
-       /*
-        * if the userland tools set things up wrong, this could be negative;
-        * just don't try to signal in this case
-        */
-       if (idx < 0)
-               return;
-
        info = tapfds[idx];
        if ((idx < 0) || (idx > MAX_TAP_DEV) || !info)
                return;