]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom: qmp-usbc: Simplify check for non-NULL pointer
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:04:16 +0000 (12:04 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 27 Feb 2026 14:33:38 +0000 (20:03 +0530)
commitb6b7d1ae0653dcaa356be31c0de221311e922ccd
tree5ba3a70b39d06da095f0e0acb0f8f88a136a00d7
parentc77eee5b44b8d32d471cf17fa193b395e321ef37
phy: qcom: qmp-usbc: Simplify check for non-NULL pointer

Pointers should not use explicit '0' comparison, so just use standard
evaluation as non-NULL:

  phy-qcom-qmp-usbc.c:1682:31: warning: Using plain integer as NULL pointer

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260216110413.159994-6-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c