diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-09-04 19:01:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-09-04 19:01:34 +0000 |
commit | c081a94223a6ecd5ca49a29b347509f7d279f59f (patch) | |
tree | 307274e573c8625564599288d41370661cd2fd19 /sys/dev/ic | |
parent | 7c686fde418a0644018be2755d1cbb16e161776a (diff) |
The powerlevel is an unsigned int, there is no need to check for negative
values and even if this would make more sense. Found by brad some time ago.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/malo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index 5aedf016bc8..b86af946cae 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.93 2011/07/03 21:35:38 dhill Exp $ */ +/* $OpenBSD: malo.c,v 1.94 2012/09/04 19:01:33 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -2216,7 +2216,7 @@ malo_cmd_set_txpower(struct malo_softc *sc, unsigned int powerlevel) bzero(body, sizeof(*body)); body->action = htole16(1); - if (powerlevel >= 0 && powerlevel < 30) + if (powerlevel < 30) body->supportpowerlvl = htole16(5); /* LOW */ else if (powerlevel >= 30 && powerlevel < 60) body->supportpowerlvl = htole16(10); /* MEDIUM */ |