[PATCH 1/3] usb: dwc3: handle return value of clk_get_rate() correctly

Dan Carpenter dan.carpenter at linaro.org
Mon Feb 5 08:25:44 CET 2024


On Sat, Feb 03, 2024 at 07:01:54AM +0800, Yang Xiwen via B4 Relay wrote:
> From: Yang Xiwen <forbidden405 at outlook.com>
> 
> clk_get_rate() return -ve on error, not 0. Fix it by replacing judging
> NULL with IS_ERR_VALUE().
  ^^^^

s/NULL/zero/.

I'd be surprised if clk_get_rate() *never* returns zero.  The Linux
kernel's clk_get_rate() function returns zero and not error codes, btw.

regards,
dan carpenter




More information about the U-Boot mailing list