diff options
author | 2017-02-16 14:09:00 +0000 | |
---|---|---|
committer | 2017-02-16 14:09:00 +0000 | |
commit | 634c1b296b45f64c573a558a7a40950a8aa2d4c0 (patch) | |
tree | 842455ad98c65c5199d80f6c4083286ac4a24990 | |
parent | correct format strings, ok guenther (diff) | |
download | wireguard-openbsd-634c1b296b45f64c573a558a7a40950a8aa2d4c0.tar.xz wireguard-openbsd-634c1b296b45f64c573a558a7a40950a8aa2d4c0.zip |
Remove an unnecessary NULL pointer check.
OK stsp@
-rw-r--r-- | sys/dev/usb/dwc2/dwc2.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c index def32a27fee..bb3a2cbd3eb 100644 --- a/sys/dev/usb/dwc2/dwc2.c +++ b/sys/dev/usb/dwc2/dwc2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2.c,v 1.40 2017/02/12 17:41:17 visa Exp $ */ +/* $OpenBSD: dwc2.c,v 1.41 2017/02/16 14:09:00 visa Exp $ */ /* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */ /*- @@ -1436,16 +1436,13 @@ dwc2_worker(struct task *wk, void *priv) } } -int dwc2_intr(void *p) +int +dwc2_intr(void *p) { struct dwc2_softc *sc = p; - struct dwc2_hsotg *hsotg; + struct dwc2_hsotg *hsotg = sc->sc_hsotg; int ret = 0; - if (sc == NULL) - return 0; - - hsotg = sc->sc_hsotg; mtx_enter(&hsotg->lock); if (sc->sc_dying) |