svn commit: r315294 - head/sys/dev/wi
Kevin Lo
kevlo at FreeBSD.org
Wed Mar 15 09:31:59 UTC 2017
Author: kevlo
Date: Wed Mar 15 09:31:58 2017
New Revision: 315294
URL: https://svnweb.freebsd.org/changeset/base/315294
Log:
Fix unreachable code in wi_pci_resume().
PR: 217784
Submitted by: Svyatoslav <razmyslov at viva64.com>
Found by: PVS-Studio
Modified:
head/sys/dev/wi/if_wi_pci.c
Modified: head/sys/dev/wi/if_wi_pci.c
==============================================================================
--- head/sys/dev/wi/if_wi_pci.c Wed Mar 15 06:18:14 2017 (r315293)
+++ head/sys/dev/wi/if_wi_pci.c Wed Mar 15 09:31:58 2017 (r315294)
@@ -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-all
mailing list