[PATCH 2/2] usb: mtu3: mtu3_debug: remove an unused struct member

Dan Carpenter dan.carpenter at oracle.com
Thu Dec 3 03:41:35 EST 2020


The "nregs" member is not used.  The code uses the "regset.nregs"
struct member instead.

Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
---
 drivers/usb/mtu3/mtu3_debug.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/mtu3/mtu3_debug.h b/drivers/usb/mtu3/mtu3_debug.h
index 3084c46017c3..9a36134b322d 100644
--- a/drivers/usb/mtu3/mtu3_debug.h
+++ b/drivers/usb/mtu3/mtu3_debug.h
@@ -19,7 +19,6 @@ struct ssusb_mtk;
 struct mtu3_regset {
 	char name[MTU3_DEBUGFS_NAME_LEN];
 	struct debugfs_regset32 regset;
-	size_t nregs;
 };
 
 struct mtu3_file_map {
-- 
2.29.2




More information about the Linux-mediatek mailing list