diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2016-08-18 09:37:27 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2016-08-18 09:37:27 +0000 |
| commit | c8848a94436e9fc4ad66cfe27f7157c24dceb360 (patch) | |
| tree | a8a4e6cb007696306e073d165c44b0ea2f051ebf /sys/dev/ntb | |
| parent | b1c68b9548e85fb0590eed36c92a0628b3cd060c (diff) | |
Notes
Diffstat (limited to 'sys/dev/ntb')
| -rw-r--r-- | sys/dev/ntb/ntb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ntb/ntb.c b/sys/dev/ntb/ntb.c index d36046ab19db..44c0c618646c 100644 --- a/sys/dev/ntb/ntb.c +++ b/sys/dev/ntb/ntb.c @@ -206,7 +206,7 @@ ntb_link_enable(device_t ntb, enum ntb_speed speed, enum ntb_width width) struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev)); struct ntb_child *nc1; - for (nc1 = *cpp; nc1 != NULL; nc1 = nc->next) { + for (nc1 = *cpp; nc1 != NULL; nc1 = nc1->next) { if (nc1->enabled) { nc->enabled = 1; return (0); @@ -226,7 +226,7 @@ ntb_link_disable(device_t ntb) if (!nc->enabled) return (0); nc->enabled = 0; - for (nc1 = *cpp; nc1 != NULL; nc1 = nc->next) { + for (nc1 = *cpp; nc1 != NULL; nc1 = nc1->next) { if (nc1->enabled) return (0); } |
