summaryrefslogtreecommitdiffstats
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorBo YU <tsu.yubo@gmail.com>2018-10-30 13:01:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-11 20:27:43 +0100
commite0d70bcb38d7eae5eb4da2db130a29d7007eac74 (patch)
treeed0968bbc19d88e2420792e683292865ff3c44f5 /lib/kobject_uevent.c
parentdriver core: fix comments for device_block_probing() (diff)
downloadlinux-e0d70bcb38d7eae5eb4da2db130a29d7007eac74.tar.xz
linux-e0d70bcb38d7eae5eb4da2db130a29d7007eac74.zip
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;