From 648fd2bd0b293dbf149103260b1d7296cbf653bd Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Sat, 30 Jul 2005 15:53:40 +0000 Subject: Add missing parenthesis around error handling code upon attaching mlx devices. This fixes an issue where mlx device drives fail to be detected at system boot. This is a RELENG_6 candidate. Submitted by: oliver PR: kern/84163 --- sys/dev/mlx/mlx_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c index 732fed8697e30..b39a6b87d0926 100644 --- a/sys/dev/mlx/mlx_pci.c +++ b/sys/dev/mlx/mlx_pci.c @@ -212,9 +212,10 @@ mlx_pci_attach(device_t dev) * Do bus-independant initialisation. */ error = mlx_attach(sc); - if (error != 0) + if (error != 0) { mlx_free(sc); return(error); + } /* * Start the controller. -- cgit v1.3