aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/fakekey.c
diff options
context:
space:
mode:
authorArushi Singhal <arushisinghal19971997@gmail.com>2017-03-24 16:59:59 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-27 14:00:41 +0200
commit0d6ff6164977d3f205bc59b6df6fce0779b0c131 (patch)
tree573585f741a85b964bf6de2640e9a04e275a075f /drivers/staging/speakup/fakekey.c
parentstaging: speakup: Align the code. (diff)
downloadlinux-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.c2
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;
}