From: Al Viro Date: Sat, 27 Oct 2007 18:46:58 +0000 (+0100) Subject: cirrusfb nonsense X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=36ea96a485ce09a88819896e48468d6469c292ab;p=openwrt%2Fstaging%2Fblogic.git cirrusfb nonsense (pointer > 0) is deeply weird; (pointer >= 0) is even dumber... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index f99cb77e7b42..f7e2d5add831 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;