From owner-svn-src-all@freebsd.org Sat Mar 18 13:58:27 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3A0CD10ED5; Sat, 18 Mar 2017 13:58:26 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C05751D76; Sat, 18 Mar 2017 13:58:26 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2IDwPjK057735; Sat, 18 Mar 2017 13:58:25 GMT (envelope-from kevlo@FreeBSD.org) Received: (from kevlo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2IDwPN5057734; Sat, 18 Mar 2017 13:58:25 GMT (envelope-from kevlo@FreeBSD.org) Message-Id: <201703181358.v2IDwPN5057734@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevlo set sender to kevlo@FreeBSD.org using -f From: Kevin Lo Date: Sat, 18 Mar 2017 13:58:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315483 - stable/11/sys/dev/wi X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Mar 2017 13:58:27 -0000 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 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);