Tag: 005e8709c6179b75830971efa891c7ed33e02d1e

irda: use msecs_to_jiffies for conversion to jiffies

Author: Nicholas Mc Guire <hofrat@osadl.org> API compliance scanning with coccinelle flagged: ./net/irda/timer.c:63:35-37: use of msecs_to_jiffies probably perferable Converting milliseconds to jiffies by “val * HZ / 1000” technically is not a clean solution as it does not handle all corner cases correctly. By changing the conversion to use msecs_to_jiffies(val) conversion is correct in all cases. …

Continue reading