[PATCH 3/3] libsensors4: Optimize sensors_feature_get_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jean Delvare wrote:
> Minor optimizations to sensors_feature_get_type():
> * We no longer support any single type, so no need to handle this case.
> * We can start looking for "_" at offset 3 rather than the beginning
>   of the string (the shortest valid prefix is "in0", 3 characters.)
> 

Nice cleanup!

I've checked the whole bunch of patches, and they look okay. Once you've 
applied them to svn I'll do some testing to see if there are any regressions, 
but I don't expect any,

Regards,

Hans




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux