Home
last modified time | relevance | path

Searched hist:"02 af589cfa8d8aefaffeef3390e3fb8fdf51978f" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/st/usb/
H A Dstm32mp1_usb.c02af589cfa8d8aefaffeef3390e3fb8fdf51978f Tue Nov 22 14:09:36 UTC 2022 Boyan Karatotev <boyan.karatotev@arm.com> fix(st-usb): replace redundant checks with asserts

Returning enum usb_status in an enum usb_action function is wrong as
they have different meanings. However, usb_dwc2_ep0_out_start() and
usb_dwc2_activate_setup() only return USBD_OK so we will never get to
there. Replace these checks with asserts in case the code changes in
future.

This also silences a warning when compiling with -Wextra.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: I73dfd5c189a357544c15ceb3f4268da82ce272b9