Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: phytium: Fix wrong assign logic in hostErrorIrq
We'll apply a bitwise AND to the controller's rxerrirq and rxerrien to isolate interrupts that are both triggered and enabled. This filtering ensures that we only process relevant interrupts. Self bitwise AND operations are meaningless. Fix follow error with clang-19: drivers/usb/phytium/host.c:451:11: error: explicitly assigning value of variable of type 'uint16_t' (aka 'unsigned short') to itself [-Werror,-Wself-assign] 451 | rxerrirq &= rxerrirq; | ~~~~~~~~ ^ ~~~~~~~~ 1 error generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information