soc: mediatek: mtk-svs: fix passing zero to 'PTR_ERR'
authorRoger Lu <roger.lu@mediatek.com>
Thu, 16 Feb 2023 13:25:43 +0000 (21:25 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 30 Mar 2023 09:29:42 +0000 (11:29 +0200)
commitedecdcccc1e971b1f0c077ef1f1f714251864aa1
treef2aee466704b5bac09aa266fe3d91e70399bf7e6
parent2ba4e3bd65213f3eae75fcd316ae38d4286d333e
soc: mediatek: mtk-svs: fix passing zero to 'PTR_ERR'

nvmem_cell_get() cannot return NULL so checking for NULL is wrong here.

Signed-off-by: Roger Lu <roger.lu@mediatek.com>
Fixes: 6c7174fd90a4690 ("soc: mediatek: mtk-svs: use svs get efuse common function")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/202302160720.N64SWT4l-lkp@intel.com/
Link: https://lore.kernel.org/r/20230216132543.814-1-roger.lu@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-svs.c