svn commit: r315483 - stable/11/sys/dev/wi
Kevin Lo
kevlo at FreeBSD.org
Sat Mar 18 13:58:27 UTC 2017
Author: kevlo
Date: Sat Mar 18 13:58:25 2017
New Revision: 315483
URL: https://svnweb.freebsd.org/changeset/base/315483
Log:
MFC r315294:
Fix unreachable code in wi_pci_resume().
PR: 217784
Submitted by: Svyatoslav <razmyslov at viva64.com>
Found by: PVS-Studio
Modified:
stable/11/sys/dev/wi/if_wi_pci.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/wi/if_wi_pci.c
==============================================================================
--- stable/11/sys/dev/wi/if_wi_pci.c Sat Mar 18 13:42:08 2017 (r315482)
+++ stable/11/sys/dev/wi/if_wi_pci.c Sat Mar 18 13:58:25 2017 (r315483)
@@ -254,8 +254,8 @@ wi_pci_resume(device_t dev)
WI_LOCK(sc);
if (sc->wi_bus_type != WI_BUS_PCI_NATIVE) {
- return (0);
WI_UNLOCK(sc);
+ return (0);
}
if (ic->ic_nrunning > 0)
wi_init(sc);
More information about the svn-src-stable
mailing list