svn commit: r299116 - head/sys/kern

Svatopluk Kraus skra at FreeBSD.org
Thu May 5 13:23:40 UTC 2016


Author: skra
Date: Thu May  5 13:23:38 2016
New Revision: 299116
URL: https://svnweb.freebsd.org/changeset/base/299116

Log:
  Remove superfluous check. The pic_dev member of struct pic
  is never NULL on PIC found by pic_lookup().

Modified:
  head/sys/kern/subr_intr.c

Modified: head/sys/kern/subr_intr.c
==============================================================================
--- head/sys/kern/subr_intr.c	Thu May  5 10:22:19 2016	(r299115)
+++ head/sys/kern/subr_intr.c	Thu May  5 13:23:38 2016	(r299116)
@@ -971,7 +971,7 @@ intr_map_irq(device_t dev, intptr_t xref
 		return (EINVAL);
 
 	pic = pic_lookup(dev, xref);
-	if (pic == NULL || pic->pic_dev == NULL)
+	if (pic == NULL)
 		return (ESRCH);
 
 	error = PIC_MAP_INTR(pic->pic_dev, data, &isrc);


More information about the svn-src-head mailing list