aboutsummaryrefslogtreecommitdiff
path: root/net/netfilter/utils.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-06-30 15:14:19 -0700
committerGuenter Roeck <linux@roeck-us.net>2019-07-08 18:11:30 -0700
commitb849e5d18c366eae8185837bd7c4adbd27213fe2 (patch)
tree1406036f3979185c8e62a1f32147602e0f2864bc /net/netfilter/utils.c
parent62456189f3292c62f87aef363f204886dc1d4b48 (diff)
hwmon: (lm90) Cache configuration register value
The configuration register does not change on its own. Yet, it is read in various locations, modified, and written back. Simplify and optimize the code by caching its value and by only writing it back when needed. Cc: Boyang Yu <byu@arista.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'net/netfilter/utils.c')
0 files changed, 0 insertions, 0 deletions