Return-path: Received: from ozlabs.org ([203.10.76.45]:37025 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792Ab0LEWqw (ORCPT ); Sun, 5 Dec 2010 17:46:52 -0500 Subject: Re: PCI: make pci_restore_state return void From: Michael Ellerman Reply-To: michael@ellerman.id.au To: Jon Mason Cc: Jesse Barnes , linux-pci@vger.kernel.org, Jonathan Corbet , linux-media@vger.kernel.org, Andrew Gallatin , Brice Goglin , netdev@vger.kernel.org, Solarflare linux maintainers , Steve Hodgson , Ben Hutchings , Stephen Hemminger , Ivo van Doorn , Gertjan van Wingerde , linux-wireless@vger.kernel.org, Brian King , Anil Ravindranath , linux-scsi@vger.kernel.org, Jaya Kumar , boyod.yang@siliconmotion.com.cn In-Reply-To: <1291160606-31494-1-git-send-email-jon.mason@exar.com> References: <1291160606-31494-1-git-send-email-jon.mason@exar.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hIo3ss+mqY7LCWIJJSeq" Date: Mon, 06 Dec 2010 09:46:50 +1100 Message-ID: <1291589210.8514.17.camel@concordia> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: --=-hIo3ss+mqY7LCWIJJSeq Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2010-11-30 at 17:43 -0600, Jon Mason wrote: > pci_restore_state only ever returns 0, thus there is no benefit in > having it return any value. Also, a large majority of the callers do > not check the return code of pci_restore_state. Make the > pci_restore_state a void return and avoid the overhead. It does kind of make me nervous that (basically) no one ever checks the return code from the PCI config space accessors, even though in theory they can fail. This code being but one example. /end random comment :) cheers --=-hIo3ss+mqY7LCWIJJSeq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkz8FloACgkQdSjSd0sB4dIPhwCeNnj0SmUov+MFuxEIOmKoioHa Tl4An1+jVELgYgfllAqQnNuGjRly4Xgt =nazf -----END PGP SIGNATURE----- --=-hIo3ss+mqY7LCWIJJSeq--