]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(io): compare function pointers with NULL
authorYann Gautier <yann.gautier@st.com>
Fri, 9 Dec 2022 13:35:05 +0000 (14:35 +0100)
committerYann Gautier <yann.gautier@st.com>
Tue, 10 Jan 2023 17:59:58 +0000 (18:59 +0100)
commit06d223cb4f54543299b96d40a682e33f9147e192
tree99e4a261d8113cc51465d16291ee857ea4546bb7
parente0c56fd71fbd7e8ef307777db8940fb2cf3c9957
fix(io): compare function pointers with NULL

The ops->read and ops->write existence was checked with 0, change it
to NULL.
This corrects sparse issues:
drivers/io/io_block.c:272:9: warning:
 Using plain integer as NULL pointer
drivers/io/io_block.c:384:9: warning:
 Using plain integer as NULL pointer
drivers/io/io_block.c:384:9: warning:
 Using plain integer as NULL pointer

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I039050a645107523d8263ddf820e539c260d956c
drivers/io/io_block.c