Date: Mon, 17 Dec 2018 21:33:26 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342179 - head/sys/dev/ichiic Message-ID: <201812172133.wBHLXQWf022299@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812172133.wBHLXQWf022299>