cirrusfb nonsense
(pointer > 0) is deeply weird; (pointer >= 0) is even dumber... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -2509,8 +2509,7 @@ static int cirrusfb_zorro_register(struct zorro_dev *z,
|
|||||||
cinfo = info->par;
|
cinfo = info->par;
|
||||||
cinfo->btype = btype;
|
cinfo->btype = btype;
|
||||||
|
|
||||||
assert(z > 0);
|
assert(z);
|
||||||
assert(z2 >= 0);
|
|
||||||
assert(btype != BT_NONE);
|
assert(btype != BT_NONE);
|
||||||
|
|
||||||
cinfo->zdev = z;
|
cinfo->zdev = z;
|
||||||
|
|||||||
Reference in New Issue
Block a user