WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] remove some bogus test while removing device

ChangeSet 1.1800, 2005/03/21 16:35:25+00:00, vh249@xxxxxxxxxxxxxxxxxxxxxx

        remove some bogus test while removing device
        
        Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>



 vbd.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c 
b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c        2005-03-21 
14:04:01 -05:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c        2005-03-21 
14:04:01 -05:00
@@ -365,7 +365,7 @@
  */
 static int xlvbd_remove_device(int dev16)
 {
-    int i, rc = 0, minor = MINOR(dev16);
+    int i, rc = 0;
     struct gendisk *gd;
     struct block_device *bd;
     struct xlbd_disk_info *di;
@@ -393,7 +393,6 @@
         goto out;
     }
 
-    BUG_ON(minor != gd->first_minor);
     /* The VBD is mapped to an entire unit. */
     
     invalidate_partition(gd, 0);


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>