summaryrefslogtreecommitdiff
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorBo YU <tsu.yubo@gmail.com>2018-10-30 08:01:14 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-11 11:27:43 -0800
commite0d70bcb38d7eae5eb4da2db130a29d7007eac74 (patch)
treeed0968bbc19d88e2420792e683292865ff3c44f5 /lib/kobject_uevent.c
parentdbf03d6569d76e74bb7b3253396ddd192f1c7b51 (diff)
kobject: drop unnecessary cast "%llu" for u64
There is no searon for u64 var cast to unsigned long long type. Signed-off-by: Bo YU <tsu.yubo@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/kobject_uevent.c')
-rw-r--r--lib/kobject_uevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 63d0816ab23b..402765c3a9cb 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -579,7 +579,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
mutex_lock(&uevent_sock_mutex);
/* we will send an event, so request a new sequence number */
- retval = add_uevent_var(env, "SEQNUM=%llu", (unsigned long long)++uevent_seqnum);
+ retval = add_uevent_var(env, "SEQNUM=%llu", ++uevent_seqnum);
if (retval) {
mutex_unlock(&uevent_sock_mutex);
goto exit;