The err variable is used when CONFIG_CRYPTO_DEV_NXP_HSE_UIO disabled, so add check line to fix build warning.
Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com> --- drivers/crypto/hse/hse-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/hse/hse-core.c b/drivers/crypto/hse/hse-core.c index 941333214c34..8c34de0e6e40 100644 --- a/drivers/crypto/hse/hse-core.c +++ b/drivers/crypto/hse/hse-core.c @@ -633,7 +633,9 @@ static int hse_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct hse_drvdata *drv; u16 status, init_ok_mask; +#ifndef CONFIG_CRYPTO_DEV_NXP_HSE_UIO int err; +#endif /* CONFIG_CRYPTO_DEV_NXP_HSE_UIO */ dev_dbg(dev, "probing driver\n"); -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9752): https://lists.yoctoproject.org/g/linux-yocto/message/9752 Mute This Topic: https://lists.yoctoproject.org/mt/82085855/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-