]> www.infradead.org Git - users/hch/uuid.git/commit
thermal: int3400: Use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Thu, 6 Jun 2024 17:21:06 +0000 (19:21 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Jun 2024 18:59:33 +0000 (20:59 +0200)
commit1007d2c5d77d2eab9dc2ba47f7de00a53d0bab73
treefe0ac6f36b4a7c605b33292073aec4c259aae64a
parenta31a0a3e90b442c1a414be24b062e27624a40a8e
thermal: int3400: Use sizeof(*pointer) instead of sizeof(type)

It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). This patch has no effect
on runtime behavior.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c