OSDN Git Service

staging: speakup: kobjects: Delete comparison
authorTamara Diaconita <diaconitatamara@gmail.com>
Tue, 7 Mar 2017 16:38:59 +0000 (18:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 13:29:40 +0000 (14:29 +0100)
commitc9862fe6dd4fc28793ad2fee363d0452c1506da7
treef000c9b06f6800ca84e9db34a6a558934e19959f
parent6f7c59a8c75f16fd4e872792ec45e83e7ed9e03e
staging: speakup: kobjects: Delete comparison

Comparison to NULL is not necessary because 'if' statement tests if
'synth' is NULL anyway.

Delete comparison in 'if' structure to fix the checkpath.pl issue :
CHECK: Comparison to NULL could be written 'synth'.

Signed-off-by: Tamara Diaconita <diaconita.tamara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c