Module Name: src Committed By: skrll Date: Mon Feb 15 17:00:27 UTC 2016
Modified Files: src/sys/dev/usb [nick-nhusb]: uhci.c Log Message: KF To generate a diff of this commit: cvs rdiff -u -r1.264.4.58 -r1.264.4.59 src/sys/dev/usb/uhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/uhci.c diff -u src/sys/dev/usb/uhci.c:1.264.4.58 src/sys/dev/usb/uhci.c:1.264.4.59 --- src/sys/dev/usb/uhci.c:1.264.4.58 Mon Feb 8 11:16:02 2016 +++ src/sys/dev/usb/uhci.c Mon Feb 15 17:00:27 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.264.4.58 2016/02/08 11:16:02 skrll Exp $ */ +/* $NetBSD: uhci.c,v 1.264.4.59 2016/02/15 17:00:27 skrll Exp $ */ /* * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.58 2016/02/08 11:16:02 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.59 2016/02/15 17:00:27 skrll Exp $"); #include "opt_usb.h" @@ -1319,7 +1319,8 @@ uhci_intr1(uhci_softc_t *sc) KASSERT(mutex_owned(&sc->sc_intr_lock)); status = UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS; - if (status == 0) /* The interrupt was not for us. */ + /* Check if the interrupt was for us. */ + if (status == 0) return 0; if (sc->sc_suspend != PWR_RESUME) {