Thread (5 messages) 5 messages, 2 authors, 2021-05-06

Re: [PATCH 1/3] usb: xhci-mtk: use bitfield instead of bool

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-04-30 07:29:23
Also in: linux-mediatek, linux-usb, lkml

On Fri, Apr 30, 2021 at 03:15:30PM +0800, Chunfeng Yun wrote:
Use bitfield instead of bool in struct
That says what you did, but not why you did it.

Why?
quoted hunk ↗ jump to hunk
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/host/xhci-mtk.c | 2 --
 drivers/usb/host/xhci-mtk.h | 8 ++++----
 2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index b2058b3bc834..2548976bcf05 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -495,8 +495,6 @@ static int xhci_mtk_probe(struct platform_device *pdev)
 			goto put_usb2_hcd;
 		}
 		mtk->has_ippc = true;
-	} else {
-		mtk->has_ippc = false;
Why did you remove this chunk?  That is not described in the changelog
at all.

thanks,

greg k-h

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help