From f060362adeb422e1a70c2ff377ddcba9a244e527 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 11 Sep 2022 19:32:29 -0700 Subject: [PATCH] ipq4018: remove write-only variables in USB ehci/xhci bus glue Changes in compilers / warnings/errors caused this to stop compiling. Delete the write-only code. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36532 --- sys/arm/qualcomm/ipq4018_usb_hs_phy.c | 2 -- sys/arm/qualcomm/ipq4018_usb_ss_phy.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/arm/qualcomm/ipq4018_usb_hs_phy.c b/sys/arm/qualcomm/ipq4018_usb_hs_phy.c index 4d3d0d70a9a..611db46e678 100644 --- a/sys/arm/qualcomm/ipq4018_usb_hs_phy.c +++ b/sys/arm/qualcomm/ipq4018_usb_hs_phy.c @@ -212,8 +212,6 @@ fail: static int ipq4018_usb_hs_usbphy_detach(device_t dev) { - struct ipq4018_usb_hs_phy_softc *sc; - sc = device_get_softc(dev); return (0); } diff --git a/sys/arm/qualcomm/ipq4018_usb_ss_phy.c b/sys/arm/qualcomm/ipq4018_usb_ss_phy.c index ad7ff8a5ff4..2b55d5c4450 100644 --- a/sys/arm/qualcomm/ipq4018_usb_ss_phy.c +++ b/sys/arm/qualcomm/ipq4018_usb_ss_phy.c @@ -192,8 +192,6 @@ fail: static int ipq4018_usb_ss_usbphy_detach(device_t dev) { - struct ipq4018_usb_ss_phy_softc *sc; - sc = device_get_softc(dev); return (0); }