mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
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:
parent
0ada7a02ad
commit
36ea96a485
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user