Skip to content

Commit

Permalink
cirrusfb nonsense
Browse files Browse the repository at this point in the history
(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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 28, 2007
1 parent 0ada7a0 commit 36ea96a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/cirrusfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36ea96a

Please sign in to comment.