linux/drivers/platform/olpc
Li Zetao f80d7100f0 platform/olpc: Remove redundant null pointer checks in olpc_ec_setup_debugfs()
Since the debugfs_create_dir() never returns a null pointer, checking
the return value for a null pointer is redundant. Since
debugfs_create_file() can deal with a ERR_PTR() style pointer, drop
the check.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20240907031009.3591057-2-lizetao1@huawei.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2024-09-11 14:20:01 +02:00
..
Kconfig Platform: OLPC: Add a config menu category for XO 1.75 2019-06-12 11:53:20 +03:00
Makefile platform-drivers-x86 for v5.3-1 2019-07-14 16:51:47 -07:00
olpc-ec.c platform/olpc: Remove redundant null pointer checks in olpc_ec_setup_debugfs() 2024-09-11 14:20:01 +02:00
olpc-xo175-ec.c platform/olpc: olpc-xo175-ec: Use SPI device ID data to bind device 2023-03-20 14:43:35 +01:00