diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-04-12 09:56:40 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-04-12 09:56:40 +0000 |
commit | 388b37ee806cc2de439a9d13b43663a340015cd4 (patch) | |
tree | 9e28edc9c41fed1a7fd85a2f29ff0f12f93a2054 /sys | |
parent | c9096d5c2b11d9866638c932bb6b20cee7293cda (diff) |
correct loop in channel set function
found by smatch indent warning
ok kevlo@ stsp@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_mtw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_mtw.c b/sys/dev/usb/if_mtw.c index 8478423960b..30171930818 100644 --- a/sys/dev/usb/if_mtw.c +++ b/sys/dev/usb/if_mtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mtw.c,v 1.8 2023/03/08 04:43:08 guenther Exp $ */ +/* $OpenBSD: if_mtw.c,v 1.9 2024/04/12 09:56:39 jsg Exp $ */ /* * Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2013-2014 Kevin Lo @@ -2549,7 +2549,7 @@ mt7601_set_chan(struct mtw_softc *sc, u_int chan) int i; /* find the settings for this channel */ - for (i = 0; mt7601_rf_chan[i].chan != chan; i++) + for (i = 0; mt7601_rf_chan[i].chan != chan; i++); mtw_rf_write(sc, 0, 17, mt7601_rf_chan[i].r17); mtw_rf_write(sc, 0, 18, mt7601_rf_chan[i].r18); |