diff options
author | 2017-08-11 20:44:25 +0000 | |
---|---|---|
committer | 2017-08-11 20:44:25 +0000 | |
commit | 83261a41e59ff148e65603585f50483901cbed38 (patch) | |
tree | f2544391fddfaaeb57680b6de3a21a0989ac5dea /sys | |
parent | move pledge after setlocale as suggested by tb@ (diff) | |
download | wireguard-openbsd-83261a41e59ff148e65603585f50483901cbed38.tar.xz wireguard-openbsd-83261a41e59ff148e65603585f50483901cbed38.zip |
Fix copy pasto (Coverity CID 1452996), with this it matches the code in FreeBSD
OK phessler@ and stsp@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ar5xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5xxx.c b/sys/dev/ic/ar5xxx.c index 20ea3db0a5b..b94eb6b3c86 100644 --- a/sys/dev/ic/ar5xxx.c +++ b/sys/dev/ic/ar5xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5xxx.c,v 1.59 2016/01/12 09:28:09 stsp Exp $ */ +/* $OpenBSD: ar5xxx.c,v 1.60 2017/08/11 20:44:25 mestre Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -278,7 +278,7 @@ ath_hal_attach(u_int16_t device, void *arg, bus_space_tag_t st, } else if (hal->ah_radio == AR5K_AR5112) { hal->ah_gain.g_step_idx = ar5112_gain_opt.go_default; hal->ah_gain.g_step = - &ar5111_gain_opt.go_step[hal->ah_gain.g_step_idx]; + &ar5112_gain_opt.go_step[hal->ah_gain.g_step_idx]; hal->ah_gain.g_low = 20; hal->ah_gain.g_high = 85; hal->ah_gain.g_active = 1; |