[PATCH] More BUG_ON conversion
[linux-2.6-block.git] / drivers / ide / ide.c
index f5a60912c27187932d6c770cc274292dd2b9afa8..9799aed772e126c6d868a87cfaae6d579284951d 100644 (file)
@@ -1367,8 +1367,7 @@ int generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device
 
                        ide_abort(drive, "drive reset");
 
-                       if(HWGROUP(drive)->handler)
-                               BUG();
+                       BUG_ON(HWGROUP(drive)->handler);
                                
                        /* Ensure nothing gets queued after we
                           drop the lock. Reset will clear the busy */