summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2011-07-30 14:01:59 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-23 10:48:30 -0700
commit502fcb796c4e9f9966f34cb253b881d00bf90eae (patch)
treed00063986df6a83e8699fa93f138a172aca55e35 /drivers
parent0c6967b5a0dd54b936e859398e8a977d24bde2a7 (diff)
downloadop-kernel-dev-502fcb796c4e9f9966f34cb253b881d00bf90eae.zip
op-kernel-dev-502fcb796c4e9f9966f34cb253b881d00bf90eae.tar.gz
tty: clearify structure initializer in notify_write()
Even though this is valid C we should not mix C99 initializers with obfuscated ANSI C. Stick to C99 and initialize c by its name. Found by clang: drivers/tty/vt/vt.c:262:55: warning: explicitly assigning a variable of type 'unsigned int' to itself [-Wself-assign] struct vt_notifier_param param = { .vc = vc, unicode = unicode }; ~~~~~~~ ^ ~~~~~~~ Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index b3915b7..e716839 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -259,7 +259,7 @@ EXPORT_SYMBOL_GPL(unregister_vt_notifier);
static void notify_write(struct vc_data *vc, unsigned int unicode)
{
- struct vt_notifier_param param = { .vc = vc, unicode = unicode };
+ struct vt_notifier_param param = { .vc = vc, .c = unicode };
atomic_notifier_call_chain(&vt_notifier_list, VT_WRITE, &param);
}
OpenPOWER on IntegriCloud