Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions
In directory usw-pr-cvs1:/tmp/cvs-serv25565
Modified Files:
ldm.c
Log Message:
split up BUG_ONs
Index: ldm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions/ldm.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -U2 -r1.81 -r1.82
--- ldm.c 5 Aug 2002 15:46:50 -0000 1.81
+++ ldm.c 8 Aug 2002 12:32:44 -0000 1.82
@@ -150,5 +150,6 @@
static BOOL ldm_parse_privhead (const u8 *data, struct privhead *ph)
{
- BUG_ON (!data || !ph);
+ BUG_ON (!data);
+ BUG_ON (!ph);
if (MAGIC_PRIVHEAD != BE64 (data)) {
@@ -207,5 +208,6 @@
static BOOL ldm_parse_tocblock (const u8 *data, struct tocblock *toc)
{
- BUG_ON (!data || !toc);
+ BUG_ON (!data);
+ BUG_ON (!toc);
if (MAGIC_TOCBLOCK != BE64 (data)) {
@@ -253,5 +255,6 @@
static BOOL ldm_parse_vmdb (const u8 *data, struct vmdb *vm)
{
- BUG_ON (!data || !vm);
+ BUG_ON (!data);
+ BUG_ON (!vm);
if (MAGIC_VMDB != BE32 (data)) {
@@ -289,5 +292,6 @@
const struct privhead *ph2)
{
- BUG_ON (!ph1 || !ph2);
+ BUG_ON (!ph1);
+ BUG_ON (!ph2);
return ((ph1->ver_major == ph2->ver_major) &&
@@ -313,5 +317,6 @@
const struct tocblock *toc2)
{
- BUG_ON (!toc1 || !toc2);
+ BUG_ON (!toc1);
+ BUG_ON (!toc2);
return ((toc1->bitmap1_start == toc2->bitmap1_start) &&
@@ -350,5 +355,6 @@
int i;
- BUG_ON (!bdev || !ph1);
+ BUG_ON (!bdev);
+ BUG_ON (!ph1);
ph[1] = kmalloc (sizeof (*ph[1]), GFP_KERNEL);
@@ -438,5 +444,6 @@
int i;
- BUG_ON (!bdev || !ldb);
+ BUG_ON (!bdev);
+ BUG_ON (!ldb);
ph = &ldb->ph;
@@ -507,5 +514,6 @@
struct tocblock *toc;
- BUG_ON (!bdev || !ldb);
+ BUG_ON (!bdev);
+ BUG_ON (!ldb);
vm = &ldb->vm;
@@ -678,5 +686,6 @@
int part_num = 1;
- BUG_ON (!pp || !ldb);
+ BUG_ON (!pp);
+ BUG_ON (!ldb);
disk = ldm_get_disk_objid (ldb);
@@ -817,5 +826,6 @@
int length;
- BUG_ON (!block || !buffer);
+ BUG_ON (!block);
+ BUG_ON (!buffer);
length = block[0];
@@ -846,5 +856,6 @@
struct vblk_comp *comp;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -897,5 +908,6 @@
struct vblk_dgrp *dgrp;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -942,5 +954,6 @@
struct vblk_dgrp *dgrp;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -985,5 +998,6 @@
struct vblk_disk *disk;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -1024,5 +1038,6 @@
struct vblk_disk *disk;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -1057,5 +1072,6 @@
struct vblk_part *part;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -1110,5 +1126,6 @@
struct vblk_volu *volu;
- BUG_ON (!buffer || !vb);
+ BUG_ON (!buffer);
+ BUG_ON (!vb);
r_objid = ldm_relative (buffer, buflen, 0x18, 0);
@@ -1180,5 +1197,6 @@
int r_objid;
- BUG_ON (!buf || !vb);
+ BUG_ON (!buf);
+ BUG_ON (!vb);
r_objid = ldm_relative (buf, len, 0x18, 0);
@@ -1232,5 +1250,6 @@
struct list_head *item;
- BUG_ON (!data || !ldb);
+ BUG_ON (!data);
+ BUG_ON (!ldb);
vb = kmalloc (sizeof (*vb), GFP_KERNEL);
@@ -1293,5 +1312,6 @@
int rec, num, group;
- BUG_ON (!data || !frags);
+ BUG_ON (!data);
+ BUG_ON (!frags);
group = BE32 (data + 0x08);
@@ -1373,5 +1393,6 @@
struct list_head *item;
- BUG_ON (!frags || !ldb);
+ BUG_ON (!frags);
+ BUG_ON (!ldb);
list_for_each (item, frags) {
@@ -1411,5 +1432,6 @@
LIST_HEAD (frags);
- BUG_ON (!bdev || !ldb);
+ BUG_ON (!bdev);
+ BUG_ON (!ldb);
size = ldb->vm.vblk_size;
@@ -1503,5 +1525,6 @@
int result = -1;
- BUG_ON (!pp || !bdev);
+ BUG_ON (!pp);
+ BUG_ON (!bdev);
/* Look for signs of a Dynamic Disk */
|