Skip to content
Commit 87a2dfb1 authored by Ye Bin's avatar Ye Bin Committed by Felipe Balbi
Browse files

usb: gadget: fsl: Fix unsigned expression compared with zero in fsl_udc_probe



udc_controller->irq is "unsigned int" always >= 0, but platform_get_irq may
return little than zero. So "dc_controller->irq < 0" condition is never
accessible.

Acked-by: default avatarLi Yang <leoyang.li@nxp.com>
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 4eea21dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment