Skip to contentSkip to conversation

cirrusfb nonsense

PATCH New Al Viro 1 participant 1 message Oct 27, 2007 Framebuffer layer

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 cirrusfb nonsense

(pointer > 0) is deeply weird; (pointer >= 0) is even dumber...

---

drivers/video/cirrusfb.c +1 -2
index f99cb77..f7e2d5a 100644
@@ -2509,8 +2509,7 @@ static int cirrusfb_zorro_register(struct zorro_dev *z,
 	cinfo = info->par;
 	cinfo->btype = btype;
 
-	assert(z > 0);
-	assert(z2 >= 0);
+	assert(z);
 	assert(btype != BT_NONE);
 
 	cinfo->zdev = z;