mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
locking/atomic, crypto/nx: Remove redundant casts
Now that atomic64_read() returns s64 consistently, we don't need to explicitly cast its return value. Drop the redundant casts. Signed-off-by: Mark Rutland <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
1 parent
3724921396
commit
2af7a0f91c
1 file changed
+3
-3
@@ -857,7 +857,7 @@ static ssize_t nx842_##_name##_show(struct device *dev, \
|
||||
local_devdata = rcu_dereference(devdata); \
|
||||
if (local_devdata) \
|
||||
p = snprintf(buf, PAGE_SIZE, "%lld\n", \
|
||||
(s64)atomic64_read(&local_devdata->counters->_name)); \
|
||||
atomic64_read(&local_devdata->counters->_name)); \
|
||||
rcu_read_unlock(); \
|
||||
return p; \
|
||||
}
|
||||
@@ -911,7 +911,7 @@ static ssize_t nx842_timehist_show(struct device *dev,
|
||||
for (i = 0; i < (NX842_HIST_SLOTS - 2); i++) {
|
||||
bytes = snprintf(p, bytes_remain, "%u-%uus:\t%lld\n",
|
||||
i ? (2<<(i-1)) : 0, (2<<i)-1,
|
||||
(s64)atomic64_read(×[i]));
|
||||
atomic64_read(×[i]));
|
||||
bytes_remain -= bytes;
|
||||
p += bytes;
|
||||
}
|
||||
@@ -919,7 +919,7 @@ static ssize_t nx842_timehist_show(struct device *dev,
|
||||
* 2<<(NX842_HIST_SLOTS - 2) us */
|
||||
bytes = snprintf(p, bytes_remain, "%uus - :\t%lld\n",
|
||||
2<<(NX842_HIST_SLOTS - 2),
|
||||
(s64)atomic64_read(×[(NX842_HIST_SLOTS - 1)]));
|
||||
atomic64_read(×[(NX842_HIST_SLOTS - 1)]));
|
||||
p += bytes;
|
||||
|
||||
rcu_read_unlock();
|
||||
|
||||
Reference in new issue
Block a user