aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorLad Prabhakar <[email protected]>2025-01-13 12:26:41 +0000
committerWolfram Sang <[email protected]>2025-01-14 12:01:30 +0000
commit385bb1c2678b59db201831255b524a6d7f7a25ff (patch)
tree2e2ebe9f65cf02cd12112a8c310b8106d5d46563 /net/unix/sysctl_net_unix.c
parenti2c: riic: Mark riic_irqs array as const (diff)
downloadkernel-385bb1c2678b59db201831255b524a6d7f7a25ff.tar.gz
kernel-385bb1c2678b59db201831255b524a6d7f7a25ff.zip
i2c: riic: Use predefined macro and simplify clock tick calculation
Replace the hardcoded `1000000000` with the predefined `NSEC_PER_SEC` macro for clarity. Simplify the code by introducing a `ns_per_tick` variable to store `NSEC_PER_SEC / rate`, reducing redundancy and improving readability. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Wolfram Sang <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions