linux-stable/drivers/char/xilinx_hwicap
Dan Carpenter 6595eae98a char: xilinx_hwicap: Fix NULL vs IS_ERR() bug
[ Upstream commit 316459ba40 ]

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

Fixes: 6723718321 ("char: xilinx_hwicap: Modernize driver probe")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/ef647a9c-b1b7-4338-9bc0-28165ec2a367@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:17:30 -04:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
buffer_icap.c
buffer_icap.h
fifo_icap.c xilinx_hwicap: cleanup comments 2022-02-25 12:08:57 +01:00
fifo_icap.h
xilinx_hwicap.c char: xilinx_hwicap: Fix NULL vs IS_ERR() bug 2024-03-26 18:17:30 -04:00
xilinx_hwicap.h char: xilinx_hwicap: Fix warnings in the driver 2017-08-28 17:04:47 +02:00