Re: [PATCH] phy: qcom: m31: Remove unwanted qphy->vreg is NULL check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 07 Sep 2023 12:20:52 +0530, Varadarajan Narayanan wrote:
> Fix the following Smatch complaint:
> 	drivers/phy/qualcomm/phy-qcom-m31.c:175 m31usb_phy_init()
> 	warn: variable dereferenced before check 'qphy->vreg' (see line 167)
> 
> drivers/phy/qualcomm/phy-qcom-m31.c
>    166
>    167		ret = regulator_enable(qphy->vreg);
>                                        ^^^^^^^^^^
> Unchecked dereference
> 
> [...]

Applied, thanks!

[1/1] phy: qcom: m31: Remove unwanted qphy->vreg is NULL check
      commit: ecec1de5c58f8f3ab6959fcf8d68752eeb65311d

Best regards,
-- 
~Vinod





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux