From aa6ed9f702e89723e890a1b2ca19dc4875bd9c0e Mon Sep 17 00:00:00 2001 From: csjp 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/mlx/mlx_pci.c') diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c index 732fed8..b39a6b8 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.1