From owner-svn-src-all@freebsd.org Wed Mar 15 09:31:59 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 572DED0D3DE; Wed, 15 Mar 2017 09:31:59 +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 1C1C01ED9; Wed, 15 Mar 2017 09:31:59 +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 v2F9VwN8055129; Wed, 15 Mar 2017 09:31:58 GMT (envelope-from kevlo@FreeBSD.org) Received: (from kevlo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2F9Vw1X055128; Wed, 15 Mar 2017 09:31:58 GMT (envelope-from kevlo@FreeBSD.org) Message-Id: <201703150931.v2F9Vw1X055128@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevlo set sender to kevlo@FreeBSD.org using -f From: Kevin Lo Date: Wed, 15 Mar 2017 09:31:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315294 - head/sys/dev/wi X-SVN-Group: head 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: Wed, 15 Mar 2017 09:31:59 -0000 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 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);