Commit 2c21fd53 authored by Li Zetao's avatar Li Zetao Committed by Hans Verkuil
Browse files

media: siano: remove redundant null pointer checks in cec_devnode_init()



Since the debugfs_create_dir() never returns a null pointer, checking
the return value for a null pointer is redundant, Remove this check
since debugfs_create_file can handle IS_ERR pointers.

Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 672f24ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment