diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-02-17 22:16:00 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 17:08:31 +0300 |
commit | 08d40c1d57b7127cfdebbc0648b57d54e38f2ba7 (patch) | |
tree | b855fe9f6632771d07594b3f0863669d8c5937ef /drivers/hwmon/nct6775-platform.c | |
parent | 4a148e9b1ee04e608263fa9536a96214d5561220 (diff) | |
download | linux-08d40c1d57b7127cfdebbc0648b57d54e38f2ba7.tar.xz |
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>
Diffstat (limited to 'drivers/hwmon/nct6775-platform.c')
-rw-r--r-- | drivers/hwmon/nct6775-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct6775-platform.c b/drivers/hwmon/nct6775-platform.c index 76c6b564d7fc..7576b8ffec67 100644 --- a/drivers/hwmon/nct6775-platform.c +++ b/drivers/hwmon/nct6775-platform.c @@ -149,7 +149,7 @@ static int nct6775_asuswmi_evaluate_method(u32 method_id, u8 bank, u8 reg, u8 va return -EIO; if (retval) - *retval = (u32)result & 0xFFFFFFFF; + *retval = result; return 0; #else |