diff options
author | 2024-08-09 11:17:09 +0200 | |
---|---|---|
committer | 2024-08-10 11:39:57 +0100 | |
commit | 7a8b585d4a5df88da28caaac4d080ce46e494ffa (patch) | |
tree | 706843aa568ea6cb2d0f8ebca4f5eadc7a99de54 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: imu: adis16400: drop ifdef around CONFIG_DEBUG_FS (diff) | |
download | wireguard-linux-7a8b585d4a5df88da28caaac4d080ce46e494ffa.tar.xz wireguard-linux-7a8b585d4a5df88da28caaac4d080ce46e494ffa.zip |
iio: imu: adis16460: drop ifdef around CONFIG_DEBUG_FS
Use IS_ENABLED(CONFIG_DEBUG_FS) to return in case debugfs is not present.
Since this is known at compile time, it allows the compiler to drop any
unused code. Therefore no need to wrap the code with #ifdef.
While at it make adis16460_debugfs_init() void as the return code is
ignored.
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240809-dev-adis-debugfs-improv-v1-4-d3adb6996518@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions