public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cirrusfb nonsense
@ 2007-10-27 18:46 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2007-10-27 18:46 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index f99cb77..f7e2d5a 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-27 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 18:46 [PATCH] cirrusfb nonsense Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox