Skip to content
Commit 5f9fcbf9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Hans Verkuil
Browse files

media: nuvoton: npcm-video: Fix IS_ERR() vs NULL bug



The of_parse_phandle() function returns NULL on error.  It never returns
error pointers.  Update the check accordingly.

Fixes: 70721089985c ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 04d19e65
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment