![]() strlen is often used incorectly to get the length of strings defined at compile time. In these cases, the behavior can be replicated with sizeof(X) - 1, which is calculated at compile time rather than runtime, reducing overhead. I've created a simple macro to replace these instances and applied it to all the files compiled into the angler kernel. Signed-off-by: Joe Maples <joe@frap129.org> |
||
---|---|---|
.. | ||
dac | ||
light | ||
device.txt | ||
generic_buffer.c | ||
iio_event_monitor.c | ||
iio_utils.h | ||
inkernel.txt | ||
overview.txt | ||
ring.txt | ||
sysfs-bus-iio-ad7192 | ||
sysfs-bus-iio-adc-ad7280a | ||
sysfs-bus-iio-dds | ||
sysfs-bus-iio-impedance-analyzer-ad5933 | ||
sysfs-bus-iio-light | ||
sysfs-bus-iio-light-tsl2583 | ||
sysfs-bus-iio-trigger-sysfs | ||
trigger.txt |