linux/drivers/media
Jinjie Ruan 8cd08e3651 media: siano: Drop unnecessary error check for debugfs_create_dir/file()
Both debugfs_create_dir() and debugfs_create_file() return ERR_PTR
and never return NULL.

As Hans suggested, this patch removes the error checking for both
debugfs_create_dir() and debugfs_create_file() in smsdvb_debugfs_create().
This is because the DebugFS kernel API is developed in a way that the
caller can safely ignore the errors that occur during the creation of
DebugFS nodes. The debugfs APIs have a IS_ERR() judge in start_creating()
which can handle it gracefully. So these checks are unnecessary.

And as Hans pointed out, it's much better to first allocate debug_data
before calling debugfs_create_dir, which need not to clean anything up in
that case.

Fixes: 503efe5cfc ("[media] siano: split debugfs code into a separate file")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-10-13 11:33:22 +02:00
..
cec media: platform: cros-ec: Add Taranza to the match table 2023-10-07 10:55:46 +02:00
common media: siano: Drop unnecessary error check for debugfs_create_dir/file() 2023-10-13 11:33:22 +02:00
dvb-core lib/math: Move dvb_math.c into lib/math/int_log.c 2023-07-09 22:47:48 +01:00
dvb-frontends media: dvb-frontends: drop check because i2c_unregister_device() is NULL safe 2023-10-07 10:55:46 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: i2c: adp1653: don't reuse the same node pointer 2023-10-12 10:12:54 +02:00
mc media: mc: Check pad flag validity 2023-10-07 10:55:48 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx18: if cx == NULL, then don't use it. 2023-10-13 11:33:22 +02:00
platform media: mediatek: vcodec: Handle invalid encoder vsi 2023-10-13 11:33:22 +02:00
radio media: radio-si476x: don't fill in bus_info 2023-09-27 10:47:23 +02:00
rc media: lirc: drop trailing space from scancode transmit 2023-10-11 16:26:16 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vidtv: mux: Add check and kfree for kstrdup 2023-10-07 10:55:45 +02:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: dvb-usb-v2: af9035: fix missing unlock 2023-10-13 11:33:21 +02:00
v4l2-core media: v4l: subdev: Print debug information on frame descriptor 2023-10-07 10:55:48 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00