]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx: scu_api: Remove unnecessary NULL check
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 28 Jul 2025 16:42:21 +0000 (17:42 +0100)
committerFabio Estevam <festevam@gmail.com>
Thu, 7 Aug 2025 11:15:45 +0000 (08:15 -0300)
commit5275b5612b55a0fac7df32b5eaf4c997c39419c4
treef63f2b318e6b3b1024ac28b74dd3aa6f73ebd20d
parentb1a89c5232f783400669235f148cc0f39accd333
imx: scu_api: Remove unnecessary NULL check

In sc_seco_secvio_dgo_config there is a check for data being NULL but
this occurs after data has already been dereferenced. All callers of the
function provide a valid pointer for data so no need for the NULL check.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/misc/imx8/scu_api.c