diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-09 01:27:29 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-09 01:27:29 +0000 |
commit | 83a7ac6bd94ccca05a7f381547d0a7a818e14d99 (patch) | |
tree | ce4de8aa74dfae92b26c04a070e482aa1bde1207 /sys/pci/pci_compat.c | |
parent | 52811ba27f17048c030f31e3fc36455b75666f91 (diff) | |
download | FreeBSD-src-83a7ac6bd94ccca05a7f381547d0a7a818e14d99.zip FreeBSD-src-83a7ac6bd94ccca05a7f381547d0a7a818e14d99.tar.gz |
Bailing out when malloc returns != NULL will not help anybody.
Diffstat (limited to 'sys/pci/pci_compat.c')
-rw-r--r-- | sys/pci/pci_compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c index 5d5bc5b..42bed11 100644 --- a/sys/pci/pci_compat.c +++ b/sys/pci/pci_compat.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci_compat.c,v 1.14 1998/12/04 22:54:56 archie Exp $ + * $Id: pci_compat.c,v 1.15 1998/12/07 21:58:48 archie Exp $ * */ @@ -451,7 +451,7 @@ int pci_register_lkm (struct pci_device *dvp, int if_revision) return (-1); } lkm = malloc (sizeof (*lkm), M_DEVBUF, M_WAITOK); - if (lkm != NULL) { + if (lkm == NULL) { return (-1); } |