diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-24 16:59:59 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-27 14:00:41 +0200 |
commit | 0d6ff6164977d3f205bc59b6df6fce0779b0c131 (patch) | |
tree | 573585f741a85b964bf6de2640e9a04e275a075f /drivers/staging/speakup/fakekey.c | |
parent | staging: speakup: Align the code. (diff) | |
download | linux-dev-0d6ff6164977d3f205bc59b6df6fce0779b0c131.tar.xz linux-dev-0d6ff6164977d3f205bc59b6df6fce0779b0c131.zip |
staging: speakup: Remove the explicit NULL comparison
Fixed coding style for null comparisons in speakup driver to be more
consistant with the rest of the kernel coding style.
Replaced 'x != NULL' with 'x' and 'x = NULL' with '!x'.
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/fakekey.c')
-rw-r--r-- | drivers/staging/speakup/fakekey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c index d76da0a1382c..294c74b47224 100644 --- a/drivers/staging/speakup/fakekey.c +++ b/drivers/staging/speakup/fakekey.c @@ -56,7 +56,7 @@ int speakup_add_virtual_keyboard(void) void speakup_remove_virtual_keyboard(void) { - if (virt_keyboard != NULL) { + if (virt_keyboard) { input_unregister_device(virt_keyboard); virt_keyboard = NULL; } |