svn commit: r342179 - head/sys/dev/ichiic

Andriy Gapon avg at FreeBSD.org
Mon Dec 17 21:33:26 UTC 2018


Author: avg
Date: Mon Dec 17 21:33:25 2018
New Revision: 342179
URL: https://svnweb.freebsd.org/changeset/base/342179

Log:
  fix formatting and style in ig4iic_acpi_probe afetr r339754
  
  This includes removing stray whitespace, adding a line after the
  variable declaration block and removing a redundant check.
  
  MFC after:	1 week
  X-MFC with:	r339754

Modified:
  head/sys/dev/ichiic/ig4_acpi.c

Modified: head/sys/dev/ichiic/ig4_acpi.c
==============================================================================
--- head/sys/dev/ichiic/ig4_acpi.c	Mon Dec 17 21:13:05 2018	(r342178)
+++ head/sys/dev/ichiic/ig4_acpi.c	Mon Dec 17 21:33:25 2018	(r342179)
@@ -71,21 +71,17 @@ ig4iic_acpi_probe(device_t dev)
 	ig4iic_softc_t *sc;
 	char *hid;
 	int rv;
-	sc = device_get_softc(dev);
 
+	sc = device_get_softc(dev);
 	if (acpi_disabled("ig4iic"))
 		return (ENXIO);
 	rv = ACPI_ID_PROBE(device_get_parent(dev), dev, ig4iic_ids, &hid);
-	if (rv > 0){
+	if (rv > 0)
 		return (rv);
-	}	
 
         if (strcmp("AMDI0010", hid) == 0)
                 sc->access_intr_mask = 1;
-
-	
-	if (rv <= 0)
-		device_set_desc(dev, "Designware I2C Controller");
+	device_set_desc(dev, "Designware I2C Controller");
 	return (rv);
 }
 


More information about the svn-src-all mailing list