From: jsg Date: Fri, 12 Apr 2024 09:56:39 +0000 (+0000) Subject: correct loop in channel set function X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e88627a6897b04f1951e1d2a84d79e9bcfbef537;p=openbsd correct loop in channel set function found by smatch indent warning ok kevlo@ stsp@ --- 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 * 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);