OSDN Git Service

hwmon: (nct6775) Drop unneeded casting and conjunction
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 Feb 2023 19:16:00 +0000 (21:16 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:31 +0000 (07:08 -0700)
commit08d40c1d57b7127cfdebbc0648b57d54e38f2ba7
treeb855fe9f6632771d07594b3f0863669d8c5937ef
parent4a148e9b1ee04e608263fa9536a96214d5561220
hwmon: (nct6775) Drop unneeded casting and conjunction

The 64-bit result will be cut to 32-bit automatically (by compiler)
due to the type of the destination value. No need to have an explicit
casting and especially additional conjunction which does the same.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230217191600.24837-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775-platform.c