Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2017 16:43:32 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323551 - head/sys/dev/intpm
Message-ID:  <201709131643.v8DGhW4a014851@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Wed Sep 13 16:43:31 2017
New Revision: 323551
URL: https://svnweb.freebsd.org/changeset/base/323551

Log:
  intpm(4): While here, remove redundant 'res' check
  
  Reported by:	avg
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/dev/intpm/intpm.c

Modified: head/sys/dev/intpm/intpm.c
==============================================================================
--- head/sys/dev/intpm/intpm.c	Wed Sep 13 16:35:16 2017	(r323550)
+++ head/sys/dev/intpm/intpm.c	Wed Sep 13 16:43:31 2017	(r323551)
@@ -185,10 +185,6 @@ sb8xx_attach(device_t dev)
 		device_printf(dev, "bus_set_resource for SMBus IO failed\n");
 		return (ENXIO);
 	}
-	if (res == NULL) {
-		device_printf(dev, "bus_alloc_resource for SMBus IO failed\n");
-		return (ENXIO);
-	}
 	sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid,
 	    RF_ACTIVE);
 	if (sc->io_res == NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709131643.v8DGhW4a014851>